weco 0.2.10__py3-none-any.whl → 0.2.11__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.
- weco/__init__.py +1 -1
- weco/cli.py +9 -4
- {weco-0.2.10.dist-info → weco-0.2.11.dist-info}/METADATA +1 -1
- weco-0.2.11.dist-info/RECORD +11 -0
- weco-0.2.10.dist-info/RECORD +0 -11
- {weco-0.2.10.dist-info → weco-0.2.11.dist-info}/WHEEL +0 -0
- {weco-0.2.10.dist-info → weco-0.2.11.dist-info}/entry_points.txt +0 -0
- {weco-0.2.10.dist-info → weco-0.2.11.dist-info}/licenses/LICENSE +0 -0
- {weco-0.2.10.dist-info → weco-0.2.11.dist-info}/top_level.txt +0 -0
weco/__init__.py
CHANGED
weco/cli.py
CHANGED
|
@@ -342,8 +342,8 @@ def main() -> None:
|
|
|
342
342
|
# Update the end optimization layout
|
|
343
343
|
final_message = (
|
|
344
344
|
f"{summary_panel.metric_name.capitalize()} {'maximized' if summary_panel.maximize else 'minimized'}! Best solution {summary_panel.metric_name.lower()} = [green]{status_response['best_result']['metric_value']}[/] 🏆"
|
|
345
|
-
if best_solution_node is not None
|
|
346
|
-
else "[red] No solution found.[/]"
|
|
345
|
+
if best_solution_node is not None and best_solution_node.metric is not None
|
|
346
|
+
else "[red] No valid solution found.[/]"
|
|
347
347
|
)
|
|
348
348
|
end_optimization_layout["summary"].update(summary_panel.get_display(final_message=final_message))
|
|
349
349
|
end_optimization_layout["tree"].update(tree_panel.get_display())
|
|
@@ -352,8 +352,13 @@ def main() -> None:
|
|
|
352
352
|
# Save optimization results
|
|
353
353
|
# If the best solution does not exist or is has not been measured at the end of the optimization
|
|
354
354
|
# save the original solution as the best solution
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
if best_solution_node is not None:
|
|
356
|
+
best_solution_code = best_solution_node.code
|
|
357
|
+
best_solution_score = best_solution_node.metric
|
|
358
|
+
else:
|
|
359
|
+
best_solution_code = None
|
|
360
|
+
best_solution_score = None
|
|
361
|
+
|
|
357
362
|
if best_solution_code is None or best_solution_score is None:
|
|
358
363
|
best_solution_content = (
|
|
359
364
|
f"# Weco could not find a better solution\n\n{read_from_path(fp=runs_copy_source_fp, is_json=False)}"
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
weco/__init__.py,sha256=FRQQiNgU5a_qo5d4NNNgMXZ5YvwxlvISipBZeXH4wjc,125
|
|
2
|
+
weco/api.py,sha256=89lB2572jApAxkA0DDppDnJKBwvZTa3kH9jFpC0LFDQ,3313
|
|
3
|
+
weco/cli.py,sha256=fisH7Gvhupu-mgpC4Dmt4x5y0KtVo_o-LjYU_iTymW4,18481
|
|
4
|
+
weco/panels.py,sha256=R_df-VAbWyLoqCA9A6UzbIGZ9sm2IgJO4idnyjmrHQk,12701
|
|
5
|
+
weco/utils.py,sha256=hhIebUPnetFMfNSFfcsKVw1TSpeu_Zw3rBPPnxDie0U,3911
|
|
6
|
+
weco-0.2.11.dist-info/licenses/LICENSE,sha256=p_GQqJBvuZgkLNboYKyH-5dhpTDlKs2wq2TVM55WrWE,1065
|
|
7
|
+
weco-0.2.11.dist-info/METADATA,sha256=XqDYBWUfDcLowdk1Ycib5SKLHOi4vQ8Ogbt6M1go7Wk,9379
|
|
8
|
+
weco-0.2.11.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
|
9
|
+
weco-0.2.11.dist-info/entry_points.txt,sha256=ixJ2uClALbCpBvnIR6BXMNck8SHAab8eVkM9pIUowcs,39
|
|
10
|
+
weco-0.2.11.dist-info/top_level.txt,sha256=F0N7v6e2zBSlsorFv-arAq2yDxQbzX3KVO8GxYhPUeE,5
|
|
11
|
+
weco-0.2.11.dist-info/RECORD,,
|
weco-0.2.10.dist-info/RECORD
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
weco/__init__.py,sha256=4m6mYZh4BUqll1JfPLJW9FXVPLdCY5clDaJ8wYl15Ew,125
|
|
2
|
-
weco/api.py,sha256=89lB2572jApAxkA0DDppDnJKBwvZTa3kH9jFpC0LFDQ,3313
|
|
3
|
-
weco/cli.py,sha256=sOSyRQWVIWmpBPClsFcMaWNyEgtfFY4nyS6re0Ok6wM,18274
|
|
4
|
-
weco/panels.py,sha256=R_df-VAbWyLoqCA9A6UzbIGZ9sm2IgJO4idnyjmrHQk,12701
|
|
5
|
-
weco/utils.py,sha256=hhIebUPnetFMfNSFfcsKVw1TSpeu_Zw3rBPPnxDie0U,3911
|
|
6
|
-
weco-0.2.10.dist-info/licenses/LICENSE,sha256=p_GQqJBvuZgkLNboYKyH-5dhpTDlKs2wq2TVM55WrWE,1065
|
|
7
|
-
weco-0.2.10.dist-info/METADATA,sha256=7pUW5Z24Wg1_8A3P-ndHJ3SyXyUflUvYDtSVUBdUOrw,9379
|
|
8
|
-
weco-0.2.10.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
|
9
|
-
weco-0.2.10.dist-info/entry_points.txt,sha256=ixJ2uClALbCpBvnIR6BXMNck8SHAab8eVkM9pIUowcs,39
|
|
10
|
-
weco-0.2.10.dist-info/top_level.txt,sha256=F0N7v6e2zBSlsorFv-arAq2yDxQbzX3KVO8GxYhPUeE,5
|
|
11
|
-
weco-0.2.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|