mg-pso-gui 0.0.61__tar.gz → 0.0.62__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/PKG-INFO +1 -1
  2. mg-pso-gui-0.0.62/README.md +307 -0
  3. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mg_pso_gui.egg-info/PKG-INFO +1 -1
  4. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mg_pso_gui.egg-info/SOURCES.txt +1 -0
  5. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/setup.py +1 -1
  6. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mg_pso_gui.egg-info/dependency_links.txt +0 -0
  7. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mg_pso_gui.egg-info/entry_points.txt +0 -0
  8. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mg_pso_gui.egg-info/requires.txt +0 -0
  9. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mg_pso_gui.egg-info/top_level.txt +0 -0
  10. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/__init__.py +0 -0
  11. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/gui/BoundsEditorWindow.py +0 -0
  12. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/gui/BoundsList.py +0 -0
  13. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/gui/CalibrationParametersView.py +0 -0
  14. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/gui/FunctionsList.py +0 -0
  15. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/gui/HomePage.py +0 -0
  16. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/gui/ListParametersView.py +0 -0
  17. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/gui/OptionManager.py +0 -0
  18. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/gui/StaticParameterView.py +0 -0
  19. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/gui/StepView.py +0 -0
  20. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/gui/__init__.py +0 -0
  21. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/gui/images/collapse.png +0 -0
  22. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/gui/images/down.png +0 -0
  23. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/gui/images/expand.png +0 -0
  24. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/gui/images/trash.png +0 -0
  25. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/gui/images/up.png +0 -0
  26. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/mgpsogui.py +0 -0
  27. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/util/CTkToolTip/__init__.py +0 -0
  28. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/util/CTkToolTip/ctk_tooltip.py +0 -0
  29. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/util/GraphGenerator.py +0 -0
  30. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/util/PSORunner.py +0 -0
  31. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/mgpsogui/util/__init__.py +0 -0
  32. {mg-pso-gui-0.0.61 → mg-pso-gui-0.0.62}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mg-pso-gui
3
- Version: 0.0.61
3
+ Version: 0.0.62
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -0,0 +1,307 @@
1
+ # Multigroup PSO Gui
2
+
3
+ This application provides an interface for setting up, configuring, running, and the visualization of multigroup PSO training.
4
+
5
+ ## Instructions for Ubuntu
6
+
7
+ To run the interface you must also install Tkinter:
8
+
9
+ ```bash
10
+ sudo apt install python-tk
11
+ ```
12
+
13
+ To install the interface simply run:
14
+
15
+ ```bash
16
+ python3 -m pip install mg-pso-gui
17
+ ```
18
+
19
+ Once the package is downloaded and install run this command to open the interface:
20
+
21
+ ```bash
22
+ mgpsogui
23
+ ```
24
+
25
+ You may need to add a folder to PATH.
26
+
27
+ **Note:** If you run into an error saying that PIL.Image was not able to be imported on Ubuntu please force reinstall Pillow.
28
+
29
+ ```bash
30
+ python3 -m pip install --upgrade --force-reinstall Pillow
31
+ ```
32
+
33
+ ## Instructions for Windows
34
+
35
+ Download and install Python 3.10 through the Microsoft Store, this makes Python easily accessible in Windows Terminal.
36
+
37
+ Once installed run this command to install the interface:
38
+
39
+ ```bash
40
+ python3 -m pip install mg-pso-gui
41
+ ```
42
+
43
+ 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:
44
+
45
+ ```bash
46
+ mgpsogui
47
+ ```
48
+
49
+ If you did not add the directory to PATH, it can be ran like this:
50
+
51
+ ```bash
52
+ C:\Users\robertcordingly\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts\mgpsogui.exe
53
+ ```
54
+
55
+ ## Instructions for MacOS
56
+
57
+ To install Tkinter and Python 3 it is best to use Homebrew:
58
+
59
+ Install Homebrew
60
+
61
+ ```bash
62
+ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
63
+ ```
64
+
65
+ Install Python3 and Tkinter
66
+
67
+ ```bash
68
+ brew install python3
69
+ ```
70
+
71
+ ```bash
72
+ brew install tkinter
73
+ ```
74
+
75
+ Then install MG PSO Gui:
76
+
77
+ ```bash
78
+ python3 -m pip install mg-pso-gui
79
+ ```
80
+
81
+ 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:
82
+
83
+ ```bash
84
+ /Library/Frameworks/Python.framework/Versions/3.8/bin/mgpsogui
85
+ ```
86
+
87
+ # Getting Started
88
+
89
+ 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
90
+
91
+ 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.
92
+
93
+ # Tab Overview
94
+
95
+ Each tab of the interface serves a different purpose described here.
96
+
97
+ ## Platform
98
+
99
+ 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.
100
+
101
+ If you do not already have a backend service deployed, the platform tab provides tools to create a local environment using Docker and Minikube.
102
+
103
+ ## Setup
104
+
105
+ 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.
106
+
107
+ Alongside the Group Editor is the Static Parameter and Calibration Parameter editors. These editors allow further customization of the training process.
108
+
109
+ ## Run
110
+
111
+ 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.
112
+
113
+ ## Visualize
114
+
115
+ 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.
116
+
117
+ # Example Configuration
118
+
119
+ ```json
120
+ {
121
+ "arguments": {
122
+ "param": [
123
+ {
124
+ "name": "startTime",
125
+ "value": "2002-01-01"
126
+ },
127
+ {
128
+ "name": "endTime",
129
+ "value": "2006-12-31"
130
+ },
131
+ {
132
+ "name": "dataStartTime",
133
+ "value": "2002-01-01"
134
+ },
135
+ {
136
+ "name": "dataEndTime",
137
+ "value": "2006-12-31"
138
+ },
139
+ {
140
+ "name": "cal_startTime",
141
+ "value": "2003-01-01"
142
+ },
143
+ {
144
+ "name": "cal_endTime",
145
+ "value": "2006-12-31"
146
+ },
147
+ {
148
+ "name": "parallelismThreads",
149
+ "value": "2"
150
+ },
151
+ {
152
+ "name": "flagLoadState",
153
+ "value": "True"
154
+ },
155
+ {
156
+ "name": "payload",
157
+ "value": "false"
158
+ },
159
+ {
160
+ "name": "project",
161
+ "value": "SFIR3"
162
+ }
163
+ ],
164
+ "url": "http://csip.engr.colostate.edu:8087/csip-oms/m/ages/0.3.0",
165
+ "files": {}
166
+ },
167
+ "calibration_parameters": [
168
+ {
169
+ "name": "min_rounds",
170
+ "value": "1"
171
+ },
172
+ {
173
+ "name": "max_rounds",
174
+ "value": "2"
175
+ },
176
+ {
177
+ "name": "n_particles",
178
+ "value": "10"
179
+ },
180
+ {
181
+ "name": "iters",
182
+ "value": "20"
183
+ },
184
+ {
185
+ "name": "n_threads",
186
+ "value": "10"
187
+ },
188
+ {
189
+ "name": "ftol",
190
+ "value": "NULL"
191
+ },
192
+ {
193
+ "name": "options_c1",
194
+ "value": "2"
195
+ },
196
+ {
197
+ "name": "options_c2",
198
+ "value": "2"
199
+ },
200
+ {
201
+ "name": "options_w",
202
+ "value": "0.8"
203
+ },
204
+ {
205
+ "name": "strategy_w",
206
+ "value": "adaptive"
207
+ },
208
+ {
209
+ "name": "strategy_c1",
210
+ "value": "adaptive"
211
+ },
212
+ {
213
+ "name": "strategy_c2",
214
+ "value": "adaptive"
215
+ },
216
+ {
217
+ "name": "service_timeout",
218
+ "value": "400"
219
+ },
220
+ {
221
+ "name": "http_retry",
222
+ "value": "5"
223
+ },
224
+ {
225
+ "name": "allow_redirects",
226
+ "value": "True"
227
+ },
228
+ {
229
+ "name": "async_call",
230
+ "value": "False"
231
+ },
232
+ {
233
+ "name": "conn_timeout",
234
+ "value": "10"
235
+ },
236
+ {
237
+ "name": "read_timeout",
238
+ "value": "400"
239
+ },
240
+ {
241
+ "name": "particles_fail",
242
+ "value": "5"
243
+ }
244
+ ],
245
+ "steps": [
246
+ {
247
+ "param": [
248
+ {
249
+ "name": "soilOutLPS",
250
+ "bounds": [
251
+ 0.0,
252
+ 2.0
253
+ ]
254
+ },
255
+ {
256
+ "name": "lagInterflow",
257
+ "bounds": [
258
+ 10.0,
259
+ 80.0
260
+ ]
261
+ }
262
+ ],
263
+ "objfunc": [
264
+ {
265
+ "name": "ns",
266
+ "of": "ns",
267
+ "weight": 1.0,
268
+ "data": [
269
+ "obs_data02_14.csv/obs/orun[1]",
270
+ "output/csip_run/out/Outlet.csv/output/catchmentSimRunoff"
271
+ ]
272
+ }
273
+ ]
274
+ },
275
+ {
276
+ "param": [
277
+ {
278
+ "name": "flowRouteTA",
279
+ "bounds": [
280
+ 0.4,
281
+ 5.0
282
+ ]
283
+ },
284
+ {
285
+ "name": "soilMaxDPS",
286
+ "bounds": [
287
+ 0.0,
288
+ 5.0
289
+ ]
290
+ }
291
+ ],
292
+ "objfunc": [
293
+ {
294
+ "name": "ns",
295
+ "of": "ns",
296
+ "weight": 1.0,
297
+ "data": [
298
+ "obs_data02_14.csv/obs/orun[1]",
299
+ "output/csip_run/out/Outlet.csv/output/catchmentSimRunoff"
300
+ ]
301
+ }
302
+ ]
303
+ }
304
+ ]
305
+ }
306
+ ```
307
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mg-pso-gui
3
- Version: 0.0.61
3
+ Version: 0.0.62
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -1,3 +1,4 @@
1
+ README.md
1
2
  setup.py
2
3
  mg_pso_gui.egg-info/PKG-INFO
3
4
  mg_pso_gui.egg-info/SOURCES.txt
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
  import codecs
3
3
  import os
4
4
 
5
- VERSION = '0.0.61'
5
+ VERSION = '0.0.62'
6
6
  DESCRIPTION = 'GUI for MG-PSO'
7
7
  LONG_DESCRIPTION = 'GUI for MG-PSO'
8
8
 
File without changes