mg-pso-gui 0.0.61__py3-none-any.whl → 0.0.64__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,332 @@
1
+ Metadata-Version: 2.1
2
+ Name: mg-pso-gui
3
+ Version: 0.0.64
4
+ Summary: GUI for MG-PSO
5
+ Author: Robert Cordingly
6
+ Author-email: <rcording@uw.ed>
7
+ Keywords: python,muti-group,pso,particle,swarm,optimization,gui
8
+ Classifier: Development Status :: 1 - Planning
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Programming Language :: Python :: 3.9
11
+ Classifier: Operating System :: Unix
12
+ Classifier: Operating System :: MacOS :: MacOS X
13
+ Classifier: Operating System :: Microsoft :: Windows
14
+ Description-Content-Type: text/markdown
15
+ Requires-Dist: pandas
16
+ Requires-Dist: numpy
17
+ Requires-Dist: requests
18
+ Requires-Dist: tk
19
+ Requires-Dist: customtkinter
20
+ Requires-Dist: plotly
21
+ Requires-Dist: csip
22
+ Requires-Dist: csip-cosu
23
+ Requires-Dist: kaleido
24
+ Requires-Dist: pillow
25
+
26
+ # Multigroup PSO Gui
27
+
28
+ This application provides an interface for setting up, configuring, running, and the visualization of multigroup PSO training.
29
+
30
+ ## Instructions for Ubuntu
31
+
32
+ To run the interface you must also install Tkinter:
33
+
34
+ ```bash
35
+ sudo apt install python-tk
36
+ ```
37
+
38
+ To install the interface simply run:
39
+
40
+ ```bash
41
+ python3 -m pip install mg-pso-gui
42
+ ```
43
+
44
+ Once the package is downloaded and install run this command to open the interface:
45
+
46
+ ```bash
47
+ mgpsogui
48
+ ```
49
+
50
+ You may need to add a folder to PATH.
51
+
52
+ **Note:** If you run into an error saying that PIL.Image was not able to be imported on Ubuntu please force reinstall Pillow.
53
+
54
+ ```bash
55
+ python3 -m pip install --upgrade --force-reinstall Pillow
56
+ ```
57
+
58
+ ## Instructions for Windows
59
+
60
+ Download and install Python 3.10 through the Microsoft Store, this makes Python easily accessible in Windows Terminal.
61
+
62
+ Once installed run this command to install the interface:
63
+
64
+ ```bash
65
+ python3 -m pip install mg-pso-gui
66
+ ```
67
+
68
+ You may need to add the folder the application was downloaded to into PATH. At the end of the installation message it will say the folder location (e.g. C:\Users\robertcordingly\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts). After adding that location to PATH, you can use this command to open the interface:
69
+
70
+ ```bash
71
+ mgpsogui
72
+ ```
73
+
74
+ If you did not add the directory to PATH, it can be ran like this:
75
+
76
+ ```bash
77
+ C:\Users\robertcordingly\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts\mgpsogui.exe
78
+ ```
79
+
80
+ ## Instructions for MacOS
81
+
82
+ To install Tkinter and Python 3 it is best to use Homebrew:
83
+
84
+ Install Homebrew
85
+
86
+ ```bash
87
+ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
88
+ ```
89
+
90
+ Install Python3 and Tkinter
91
+
92
+ ```bash
93
+ brew install python3
94
+ ```
95
+
96
+ ```bash
97
+ brew install tkinter
98
+ ```
99
+
100
+ Then install MG PSO Gui:
101
+
102
+ ```bash
103
+ python3 -m pip install mg-pso-gui
104
+ ```
105
+
106
+ You may need to add /Library/Frameworks/Python.framework/Versions/3.8/bin to path to run the interface with 'mgpsogui,' otherwise run the interface:
107
+
108
+ ```bash
109
+ /Library/Frameworks/Python.framework/Versions/3.8/bin/mgpsogui
110
+ ```
111
+
112
+ # Getting Started
113
+
114
+ After getting the GUI to launch, it is first recommended to start with one of the default config files. Default config files are available here: https://drive.google.com/file/d/1Ra4Um7KgCghMidyrrLrD6wFSXJZd3zkX/view?usp=share_link
115
+
116
+ To load a config simply click the "load" button in the left side bar and select the file using the file picker. After a config has been loaded, enter a service URL, and click "Connect". If the connection is successful the other tabs on the interface will be unlocked and you will have full access to all of the interface's features.
117
+
118
+ # Tab Overview
119
+
120
+ Each tab of the interface serves a different purpose described here.
121
+
122
+ ## Platform
123
+
124
+ The platform tab is where you defined the backend service used to train the model. If the service already exists, simply add the URL to the service field and press connect to get parameters from the service. After doing this the other tabs will unlock.
125
+
126
+ If you do not already have a backend service deployed, the platform tab provides tools to create a local environment using Docker and Minikube.
127
+
128
+ ## Setup
129
+
130
+ The setup tab is where all parameters about the training process are defined. The Group Editor allow you to define groups, the parameters each group uses, and the functions used. The available parameters are defined by the service.
131
+
132
+ Alongside the Group Editor is the Static Parameter and Calibration Parameter editors. These editors allow further customization of the training process.
133
+
134
+ ## Run
135
+
136
+ The run tab allows you to start the training process, stop it, and view the progress. If there is an error in the training process information will be shown in the text box.
137
+
138
+ ## Visualize
139
+
140
+ The Visualize tab allows you to generate a variety of different graphs and tables. Some graphs are filled in while the training process occurs while other require full steps to complete training. To export and further view graphs the "Open in Browser" allows a figure to be opened in your default web browser and open and interactive version of the graph.
141
+
142
+ # Example Configuration
143
+
144
+ ```json
145
+ {
146
+ "arguments": {
147
+ "param": [
148
+ {
149
+ "name": "startTime",
150
+ "value": "2002-01-01"
151
+ },
152
+ {
153
+ "name": "endTime",
154
+ "value": "2006-12-31"
155
+ },
156
+ {
157
+ "name": "dataStartTime",
158
+ "value": "2002-01-01"
159
+ },
160
+ {
161
+ "name": "dataEndTime",
162
+ "value": "2006-12-31"
163
+ },
164
+ {
165
+ "name": "cal_startTime",
166
+ "value": "2003-01-01"
167
+ },
168
+ {
169
+ "name": "cal_endTime",
170
+ "value": "2006-12-31"
171
+ },
172
+ {
173
+ "name": "parallelismThreads",
174
+ "value": "2"
175
+ },
176
+ {
177
+ "name": "flagLoadState",
178
+ "value": "True"
179
+ },
180
+ {
181
+ "name": "payload",
182
+ "value": "false"
183
+ },
184
+ {
185
+ "name": "project",
186
+ "value": "SFIR3"
187
+ }
188
+ ],
189
+ "url": "http://csip.engr.colostate.edu:8087/csip-oms/m/ages/0.3.0",
190
+ "files": {}
191
+ },
192
+ "calibration_parameters": [
193
+ {
194
+ "name": "min_rounds",
195
+ "value": "1"
196
+ },
197
+ {
198
+ "name": "max_rounds",
199
+ "value": "2"
200
+ },
201
+ {
202
+ "name": "n_particles",
203
+ "value": "10"
204
+ },
205
+ {
206
+ "name": "iters",
207
+ "value": "20"
208
+ },
209
+ {
210
+ "name": "n_threads",
211
+ "value": "10"
212
+ },
213
+ {
214
+ "name": "ftol",
215
+ "value": "NULL"
216
+ },
217
+ {
218
+ "name": "options_c1",
219
+ "value": "2"
220
+ },
221
+ {
222
+ "name": "options_c2",
223
+ "value": "2"
224
+ },
225
+ {
226
+ "name": "options_w",
227
+ "value": "0.8"
228
+ },
229
+ {
230
+ "name": "strategy_w",
231
+ "value": "adaptive"
232
+ },
233
+ {
234
+ "name": "strategy_c1",
235
+ "value": "adaptive"
236
+ },
237
+ {
238
+ "name": "strategy_c2",
239
+ "value": "adaptive"
240
+ },
241
+ {
242
+ "name": "service_timeout",
243
+ "value": "400"
244
+ },
245
+ {
246
+ "name": "http_retry",
247
+ "value": "5"
248
+ },
249
+ {
250
+ "name": "allow_redirects",
251
+ "value": "True"
252
+ },
253
+ {
254
+ "name": "async_call",
255
+ "value": "False"
256
+ },
257
+ {
258
+ "name": "conn_timeout",
259
+ "value": "10"
260
+ },
261
+ {
262
+ "name": "read_timeout",
263
+ "value": "400"
264
+ },
265
+ {
266
+ "name": "particles_fail",
267
+ "value": "5"
268
+ }
269
+ ],
270
+ "steps": [
271
+ {
272
+ "param": [
273
+ {
274
+ "name": "soilOutLPS",
275
+ "bounds": [
276
+ 0.0,
277
+ 2.0
278
+ ]
279
+ },
280
+ {
281
+ "name": "lagInterflow",
282
+ "bounds": [
283
+ 10.0,
284
+ 80.0
285
+ ]
286
+ }
287
+ ],
288
+ "objfunc": [
289
+ {
290
+ "name": "ns",
291
+ "of": "ns",
292
+ "weight": 1.0,
293
+ "data": [
294
+ "obs_data02_14.csv/obs/orun[1]",
295
+ "output/csip_run/out/Outlet.csv/output/catchmentSimRunoff"
296
+ ]
297
+ }
298
+ ]
299
+ },
300
+ {
301
+ "param": [
302
+ {
303
+ "name": "flowRouteTA",
304
+ "bounds": [
305
+ 0.4,
306
+ 5.0
307
+ ]
308
+ },
309
+ {
310
+ "name": "soilMaxDPS",
311
+ "bounds": [
312
+ 0.0,
313
+ 5.0
314
+ ]
315
+ }
316
+ ],
317
+ "objfunc": [
318
+ {
319
+ "name": "ns",
320
+ "of": "ns",
321
+ "weight": 1.0,
322
+ "data": [
323
+ "obs_data02_14.csv/obs/orun[1]",
324
+ "output/csip_run/out/Outlet.csv/output/catchmentSimRunoff"
325
+ ]
326
+ }
327
+ ]
328
+ }
329
+ ]
330
+ }
331
+ ```
332
+
@@ -20,8 +20,8 @@ mgpsogui/util/PSORunner.py,sha256=5dBTWvLoIMpUHojGHPqwV3JhpffmpiJxUpX0en_je74,27
20
20
  mgpsogui/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  mgpsogui/util/CTkToolTip/__init__.py,sha256=G1jxV55hGtGgwyC1sR-uUUdasDdh0XZgcI-aILgGYA0,225
22
22
  mgpsogui/util/CTkToolTip/ctk_tooltip.py,sha256=SZMovpQIGvdpDRbqCKl9SHs92DrFCO2MOYL2ifolvOE,6329
23
- mg_pso_gui-0.0.61.dist-info/METADATA,sha256=_VmWp1EuhJmdryGVhO-T9nXi5U00iZJMtQVBEbtPjak,761
24
- mg_pso_gui-0.0.61.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
25
- mg_pso_gui-0.0.61.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
26
- mg_pso_gui-0.0.61.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
27
- mg_pso_gui-0.0.61.dist-info/RECORD,,
23
+ mg_pso_gui-0.0.64.dist-info/METADATA,sha256=iFMIx31CU-xWvJ5mVcI3IeCv7I18UwRaC5p-g8SIeKM,9458
24
+ mg_pso_gui-0.0.64.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
25
+ mg_pso_gui-0.0.64.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
26
+ mg_pso_gui-0.0.64.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
27
+ mg_pso_gui-0.0.64.dist-info/RECORD,,
@@ -1,26 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: mg-pso-gui
3
- Version: 0.0.61
4
- Summary: GUI for MG-PSO
5
- Author: Robert Cordingly
6
- Author-email: <rcording@uw.ed>
7
- Keywords: python,muti-group,pso,particle,swarm,optimization,gui
8
- Classifier: Development Status :: 1 - Planning
9
- Classifier: Intended Audience :: Developers
10
- Classifier: Programming Language :: Python :: 3.9
11
- Classifier: Operating System :: Unix
12
- Classifier: Operating System :: MacOS :: MacOS X
13
- Classifier: Operating System :: Microsoft :: Windows
14
- Description-Content-Type: text/markdown
15
- Requires-Dist: pandas
16
- Requires-Dist: numpy
17
- Requires-Dist: requests
18
- Requires-Dist: tk
19
- Requires-Dist: customtkinter
20
- Requires-Dist: plotly
21
- Requires-Dist: csip
22
- Requires-Dist: csip-cosu
23
- Requires-Dist: kaleido
24
- Requires-Dist: pillow
25
-
26
- GUI for MG-PSO