mg-pso-gui 0.2.131__py3-none-any.whl → 0.2.133__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mg-pso-gui
3
- Version: 0.2.131
3
+ Version: 0.2.133
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -1,7 +1,7 @@
1
1
  mgpsogui/__init__.py,sha256=q7AfBjeJABnFtbsZnsObpUwaXKPDVYtz46G6MKXLF74,42
2
2
  mgpsogui/mgpsogui.py,sha256=NIZmyNcbwC8EgSwf1ubdMUSJscrIEgoD4jLYziqHQ-k,148
3
3
  mgpsogui/start.yaml,sha256=ZjCVLb-MLqAxrGRm9kA7_SDpa-45EuKIELNQ2QqCAiU,4713
4
- mgpsogui/gui/HomePage.py,sha256=_WAjAKZTnHxO3j0Vz4hXRwCVvoxiG5B-6vubQnqQU8k,25974
4
+ mgpsogui/gui/HomePage.py,sha256=9ePDTkI-bGt4gqT__fPKDuJZXDRyz3Kmr-FeVkf7DwU,25986
5
5
  mgpsogui/gui/OptionManager.py,sha256=jyxu8J6YtZ07D2M5L5uVx0fhfMbwYa3FGNIzd8f2Tio,24140
6
6
  mgpsogui/gui/OptionManager_backup.py,sha256=TCWfPnHL2foN5id47jsi267lamRG6yGU6y_M29eOOJk,18530
7
7
  mgpsogui/gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -14,7 +14,7 @@ mgpsogui/gui/RunTab/OptimalParameterView.py,sha256=nliUEWA840cPBQt7wjiZ-L7uBOp_o
14
14
  mgpsogui/gui/RunTab/RunTab.py,sha256=_JWzDx5LT_uISw0Vnv-W2ypIeuKgoWqBnvFnvrLhNQA,5917
15
15
  mgpsogui/gui/RunTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  mgpsogui/gui/SetupTab/BoundsEditorWindow.py,sha256=7Vic6AkBI2FStMlYyPH0-dNJJyqEckYJpwxknAqtp84,3403
17
- mgpsogui/gui/SetupTab/BoundsList.py,sha256=tWQ1itHoR-1bj3n650xceMcEK5L56xHQCx5VrqA-HSc,15201
17
+ mgpsogui/gui/SetupTab/BoundsList.py,sha256=KLOSejhxEZYdmFjaxvTXX5vFrtMCXRj4wTPs1imMtn8,15269
18
18
  mgpsogui/gui/SetupTab/CustomFunctionEditorWindow.py,sha256=lZ9a20YucwhCDiUN3eGA6WXQK7laToB7FP4Zev4Zxnc,3417
19
19
  mgpsogui/gui/SetupTab/CustomFunctionMetrics.py,sha256=vOJpElbTgz043m6JYwe9xz_2MBHg985S6KdbJkJERW4,5923
20
20
  mgpsogui/gui/SetupTab/FunctionsList.py,sha256=wmYmppyB5y8QADe3X_FQ5mAYVDC0HAPQgqtkegNwmLA,7007
@@ -33,7 +33,7 @@ mgpsogui/gui/VisualizeTab/VisualizeTab.py,sha256=Ro-K-P7aIcDM5GF-4QkUSo-HeLZANap
33
33
  mgpsogui/gui/VisualizeTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
34
  mgpsogui/gui/defaults/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
35
  mgpsogui/gui/defaults/optimization.json,sha256=bd_XxTKtKN_ErZoxtZmhltWID-sDJAdxzsqt9qBSsh8,3629
36
- mgpsogui/gui/defaults/sampling.json,sha256=0BZVXI_BiujDjR6VV1L5kSamRdSoDbBuTi1zRa6qtzM,2044
36
+ mgpsogui/gui/defaults/sampling.json,sha256=NP9XbIQtbIHnjpKN5DKSzMdS3T8U9Q5LTc7ZFwxLHzo,2042
37
37
  mgpsogui/gui/defaults/sensitivity.json,sha256=H3_4NKP6YsUGF73OjKyFNDwKfP_LmfykccDQPFLLvd8,396
38
38
  mgpsogui/gui/images/collapse.png,sha256=yicb16LaY7Nl5q9V8HHlht-Fbg5xU-l4_LJ_Arfmu1c,2989
39
39
  mgpsogui/gui/images/down.png,sha256=pspJkvUitD648C_2y8JLLD4Eagpk4MDEKQJGOO_yIaY,2654
@@ -48,7 +48,7 @@ mgpsogui/gui/images/trash.png,sha256=j8cf0kWbJd-4Jp20lUVV1o1NSeQ4v1Ej4gfcIA3DVRQ
48
48
  mgpsogui/gui/images/up.png,sha256=AQvFWCUqSQNaQ1E6LKZ9zNfSvW6t4mgy8uswdg9T2Hg,2457
49
49
  mgpsogui/gui/messages/welcome.txt,sha256=fPuBbYcIso3p26vpyLBK0V7FPyk7JQDhyTnVClJFttc,5984
50
50
  mgpsogui/util/GraphGenerator.py,sha256=LHHDCvBuJQ0RYQm0azi5tC-etrZ1KLQh-tkahVurPSI,31990
51
- mgpsogui/util/PSORunner.py,sha256=G_s3lYpbvguPHyVERubPZHYik4G00t9NMtlRr8j-Rb4,15289
51
+ mgpsogui/util/PSORunner.py,sha256=GaSD6HAwzn34vOqf9yvx9J0sHuK6s0aJAsuAy2bENLo,15485
52
52
  mgpsogui/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
53
  mgpsogui/util/debug.py,sha256=Swzny9_1S-CCONWGssj9iDoSpbwu5Vr4f95g_9L8bec,19759
54
54
  mgpsogui/util/helpers.py,sha256=Ht2rge_4pGO7halz6KoLsL2eukB0k2tlkx68lBBmBA8,2669
@@ -73,8 +73,8 @@ mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvar
73
73
  mgpsogui/util/recosu/utils/utils.py,sha256=RFBY6r4D48VXqKV2jaP5kkJ3rpEe_9mpI2C-Gd0om-4,6447
74
74
  mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
75
75
  mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
76
- mg_pso_gui-0.2.131.dist-info/METADATA,sha256=kgtxIwYvT-Qbhvv4hfOp-au1q4zPFbdJaWeGJ-D0_-U,9542
77
- mg_pso_gui-0.2.131.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
78
- mg_pso_gui-0.2.131.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
79
- mg_pso_gui-0.2.131.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
80
- mg_pso_gui-0.2.131.dist-info/RECORD,,
76
+ mg_pso_gui-0.2.133.dist-info/METADATA,sha256=N7kxkaRCm8Q2VCmZvnteFu5-oecA1ButWLpszzEOF5A,9542
77
+ mg_pso_gui-0.2.133.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
78
+ mg_pso_gui-0.2.133.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
79
+ mg_pso_gui-0.2.133.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
80
+ mg_pso_gui-0.2.133.dist-info/RECORD,,
mgpsogui/gui/HomePage.py CHANGED
@@ -116,7 +116,7 @@ class App(customtkinter.CTk):
116
116
  self.running_loop_ticks = 1
117
117
 
118
118
  # Configure window
119
- version = "v0.2.131"
119
+ version = "v0.2.132"
120
120
  self.title("COSU Manager (" + version + ")")
121
121
 
122
122
  screen_width = self.winfo_screenwidth()
@@ -265,6 +265,8 @@ class App(customtkinter.CTk):
265
265
  self.after(3000, lambda: self.save_button.configure(text="Save As"))
266
266
 
267
267
  def auto_save_project(self):
268
+ return 0
269
+
268
270
  data = self.option_manager.get_project_data()
269
271
 
270
272
  if (data['path'] != "/tmp"):
@@ -99,6 +99,9 @@ class BoundsList(CTkFrame):
99
99
  if mode == "Sensitivity Analysis":
100
100
  show_bounds = False
101
101
 
102
+ if mode == "Optimization":
103
+ show_default = True
104
+
102
105
  for bound in bounds:
103
106
  bound_type = bound["type"].get()
104
107
  if bound_type == "list":
@@ -47,7 +47,9 @@
47
47
  "value": "drake58hru-5min",
48
48
  "type": "string",
49
49
  "destination": "args"
50
- },
50
+ }
51
+ ],
52
+ "hyperparameters": [
51
53
  {
52
54
  "name": "offset",
53
55
  "value": "5",
@@ -66,9 +68,6 @@
66
68
  "type": "integer",
67
69
  "destination": "kwargs"
68
70
  }
69
- ],
70
- "hyperparameters": [
71
-
72
71
  ],
73
72
  "service_parameters": [
74
73
  {
@@ -73,12 +73,6 @@ def run_process(stdout_queue, stderr_queue, results_queue, data, folder, mode):
73
73
  else:
74
74
  print("Invalid mode")
75
75
 
76
- stdout_thread.join()
77
- stderr_thread.join()
78
-
79
- sys.stdout = old_stdout
80
- sys.stderr = old_stderr
81
-
82
76
  except Exception as e:
83
77
  print("An exception occurred: ", flush=True)
84
78
  print(str(e))
@@ -91,13 +85,31 @@ def run_process(stdout_queue, stderr_queue, results_queue, data, folder, mode):
91
85
  f.write(str(e))
92
86
  f.write("\n")
93
87
  traceback.print_exc(file=f)
88
+
94
89
  finally:
95
- stdout_thread.join()
96
- stderr_thread.join()
97
-
90
+ try:
91
+ stdout_thread.join()
92
+ stderr_thread.join()
93
+ except:
94
+ pass
95
+
98
96
  sys.stdout = old_stdout
99
97
  sys.stderr = old_stderr
100
98
 
99
+ try:
100
+ stdout_queue.close()
101
+ stdout_queue.join_thread()
102
+
103
+ stderr_queue.close()
104
+ stderr_queue.join_thread()
105
+
106
+ results_queue.close()
107
+ results_queue.join_thread()
108
+ except:
109
+ pass
110
+
111
+ os._exit(0)
112
+
101
113
  def process_list(data, parameter_map, args, options, oh_strategy, config, metainfo, list_name):
102
114
  """_summary_
103
115
 
@@ -357,7 +369,7 @@ def run_optimization(data, folder, results_queue):
357
369
 
358
370
  results_queue.put(trace)
359
371
  print(trace, flush=True)
360
- pass
372
+
361
373
 
362
374
 
363
375