omniopt2 7010__tar.gz → 7015__tar.gz

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.
Files changed (38) hide show
  1. {omniopt2-7010 → omniopt2-7015}/.helpers.py +5 -1
  2. {omniopt2-7010 → omniopt2-7015}/.omniopt_plot_gpu_usage.py +0 -1
  3. {omniopt2-7010 → omniopt2-7015}/.omniopt_plot_scatter.py +1 -8
  4. {omniopt2-7010 → omniopt2-7015}/.omniopt_plot_scatter_hex.py +1 -8
  5. {omniopt2-7010 → omniopt2-7015}/.omniopt_plot_time_and_exit_code.py +0 -2
  6. {omniopt2-7010 → omniopt2-7015}/.omniopt_plot_worker.py +9 -12
  7. {omniopt2-7010/omniopt2.egg-info → omniopt2-7015}/PKG-INFO +1 -1
  8. {omniopt2-7010 → omniopt2-7015/omniopt2.egg-info}/PKG-INFO +1 -1
  9. {omniopt2-7010 → omniopt2-7015}/pyproject.toml +1 -1
  10. {omniopt2-7010 → omniopt2-7015}/.colorfunctions.sh +0 -0
  11. {omniopt2-7010 → omniopt2-7015}/.dockerignore +0 -0
  12. {omniopt2-7010 → omniopt2-7015}/.general.sh +0 -0
  13. {omniopt2-7010 → omniopt2-7015}/.gitignore +0 -0
  14. {omniopt2-7010 → omniopt2-7015}/.omniopt.py +0 -0
  15. {omniopt2-7010 → omniopt2-7015}/.omniopt_plot_cpu_ram_usage.py +0 -0
  16. {omniopt2-7010 → omniopt2-7015}/.omniopt_plot_general.py +0 -0
  17. {omniopt2-7010 → omniopt2-7015}/.omniopt_plot_kde.py +0 -0
  18. {omniopt2-7010 → omniopt2-7015}/.omniopt_plot_scatter_generation_method.py +0 -0
  19. {omniopt2-7010 → omniopt2-7015}/.omniopt_plot_trial_index_result.py +0 -0
  20. {omniopt2-7010 → omniopt2-7015}/.random_generator.py +0 -0
  21. {omniopt2-7010 → omniopt2-7015}/.shellscript_functions +0 -0
  22. {omniopt2-7010 → omniopt2-7015}/LICENSE +0 -0
  23. {omniopt2-7010 → omniopt2-7015}/MANIFEST.in +0 -0
  24. {omniopt2-7010 → omniopt2-7015}/README.md +0 -0
  25. {omniopt2-7010 → omniopt2-7015}/apt-dependencies.txt +0 -0
  26. {omniopt2-7010 → omniopt2-7015}/omniopt +0 -0
  27. {omniopt2-7010 → omniopt2-7015}/omniopt2.egg-info/SOURCES.txt +0 -0
  28. {omniopt2-7010 → omniopt2-7015}/omniopt2.egg-info/dependency_links.txt +0 -0
  29. {omniopt2-7010 → omniopt2-7015}/omniopt2.egg-info/requires.txt +0 -0
  30. {omniopt2-7010 → omniopt2-7015}/omniopt2.egg-info/top_level.txt +0 -0
  31. {omniopt2-7010 → omniopt2-7015}/omniopt_docker +0 -0
  32. {omniopt2-7010 → omniopt2-7015}/omniopt_evaluate +0 -0
  33. {omniopt2-7010 → omniopt2-7015}/omniopt_plot +0 -0
  34. {omniopt2-7010 → omniopt2-7015}/omniopt_share +0 -0
  35. {omniopt2-7010 → omniopt2-7015}/requirements.txt +0 -0
  36. {omniopt2-7010 → omniopt2-7015}/setup.cfg +0 -0
  37. {omniopt2-7010 → omniopt2-7015}/setup.py +0 -0
  38. {omniopt2-7010 → omniopt2-7015}/test_requirements.txt +0 -0
@@ -842,7 +842,11 @@ def can_be_plotted(path: str) -> bool:
842
842
 
843
843
  return len(lines) == 1
844
844
 
845
- def die_if_cannot_be_plotted(run_dir: str) -> None:
845
+ def die_if_cannot_be_plotted(run_dir: Optional[str]) -> None:
846
+ if run_dir is None:
847
+ log_error("run_dir was empty")
848
+ sys.exit(2)
849
+
846
850
  if not can_be_plotted(run_dir):
847
851
  log_error(f"{run_dir} contains multiple RESULTS and thus can only be plotted by parallel plot")
848
852
  sys.exit(2)
@@ -20,7 +20,6 @@ from beartype import beartype
20
20
 
21
21
  parser = argparse.ArgumentParser(description='Process some integers.')
22
22
  parser.add_argument('--run_dir', type=str, help='Directory where to search for CSV files')
23
-
24
23
  parser.add_argument('--no_legend', help='Disables legend (useless here)', action='store_true', default=False)
25
24
  parser.add_argument('--save_to_file', nargs='?', const='plot', type=str, help='Path to save the plot(s)')
26
25
  parser.add_argument('--no_plt_show', help='Disable showing the plot', action='store_true', default=False)
@@ -49,7 +49,6 @@ parser.add_argument('--run_dir', type=str, help='Path to a CSV file', required=T
49
49
  parser.add_argument('--save_to_file', type=str, help='Save the plot to the specified file', default=None)
50
50
  parser.add_argument('--max', type=float, help='Maximum value', default=None)
51
51
  parser.add_argument('--min', type=float, help='Minimum value', default=None)
52
- parser.add_argument('--darkmode', help='Enable darktheme', action='store_true', default=False)
53
52
  parser.add_argument('--bubblesize', type=int, help='Size of the bubbles', default=15)
54
53
  parser.add_argument('--merge_with_previous_runs', action='append', nargs='+', help="Run-Dirs to be merged with", default=[])
55
54
  parser.add_argument('--exclude_params', action='append', nargs='+', help="Params to be ignored", default=[])
@@ -214,12 +213,6 @@ def update_graph(csv_file_path: str, event: Any = None, _min: Union[int, float,
214
213
 
215
214
  if __name__ == "__main__":
216
215
  try:
217
- theme = "fast"
218
-
219
- if args is not None and args.darkmode:
220
- theme = "dark_background"
221
-
222
- with plt.style.context(theme):
223
- main()
216
+ main()
224
217
  except KeyboardInterrupt:
225
218
  sys.exit(0)
@@ -55,7 +55,6 @@ parser.add_argument('--run_dir', type=str, help='Path to a CSV file', required=T
55
55
  parser.add_argument('--save_to_file', type=str, help='Save the plot to the specified file', default=None)
56
56
  parser.add_argument('--max', type=float, help='Maximum value', default=None)
57
57
  parser.add_argument('--min', type=float, help='Minimum value', default=None)
58
- parser.add_argument('--darkmode', help='Enable darktheme', action='store_true', default=False)
59
58
  parser.add_argument('--merge_with_previous_runs', action='append', nargs='+', help="Run-Dirs to be merged with", default=[])
60
59
  parser.add_argument('--exclude_params', action='append', nargs='+', help="Params to be ignored", default=[])
61
60
 
@@ -266,12 +265,6 @@ def update_graph(csv_file_path: str, event: Any = None, _min: Union[int, float,
266
265
 
267
266
  if __name__ == "__main__":
268
267
  try:
269
- theme = "fast"
270
-
271
- if args is not None and args.darkmode:
272
- theme = "dark_background"
273
-
274
- with plt.style.context(theme):
275
- main()
268
+ main()
276
269
  except KeyboardInterrupt:
277
270
  sys.exit(0)
@@ -38,9 +38,7 @@ else:
38
38
 
39
39
  parser = argparse.ArgumentParser(description='Plot worker usage from CSV file')
40
40
  parser.add_argument('--run_dir', type=str, help='Directory containing worker usage CSV file')
41
-
42
41
  parser.add_argument('--save_to_file', type=str, help='Save the plot to the specified file', default=None)
43
-
44
42
  parser.add_argument('--bins', type=int, help='Number of bins for distribution of results (useless here)', default=10)
45
43
  parser.add_argument('--no_plt_show', help='Disable showing the plot', action='store_true', default=False)
46
44
  args = parser.parse_args()
@@ -12,13 +12,19 @@ import os
12
12
  import sys
13
13
  import traceback
14
14
  from datetime import datetime, timezone
15
- from typing import Any
16
15
 
17
16
  import matplotlib.pyplot as plt
18
17
  import pandas as pd
19
18
 
20
19
  from beartype import beartype
21
20
 
21
+ parser = argparse.ArgumentParser(description='Plot worker usage from CSV file')
22
+ parser.add_argument('--run_dir', type=str, help='Directory containing worker usage CSV file')
23
+ parser.add_argument('--debug', action='store_true', help='Enable debug mode')
24
+ parser.add_argument('--save_to_file', type=str, help='Save the plot to the specified file', default=None)
25
+ parser.add_argument('--no_plt_show', help='Disable showing the plot', action='store_true', default=False)
26
+ args = parser.parse_args()
27
+
22
28
  script_dir = os.path.dirname(os.path.realpath(__file__))
23
29
  helpers_file = f"{script_dir}/.helpers.py"
24
30
  spec = importlib.util.spec_from_file_location(
@@ -32,7 +38,7 @@ else:
32
38
  raise ImportError(f"Could not load module from {helpers_file}")
33
39
 
34
40
  @beartype
35
- def plot_worker_usage(args: Any, pd_csv: str) -> None:
41
+ def plot_worker_usage(pd_csv: str) -> None:
36
42
  try:
37
43
  data = pd.read_csv(pd_csv, names=['time', 'num_parallel_jobs', 'nr_current_workers', 'percentage'])
38
44
 
@@ -93,15 +99,6 @@ def plot_worker_usage(args: Any, pd_csv: str) -> None:
93
99
  print(traceback.format_exc(), file=sys.stderr)
94
100
 
95
101
  def main() -> None:
96
- parser = argparse.ArgumentParser(description='Plot worker usage from CSV file')
97
- parser.add_argument('--run_dir', type=str, help='Directory containing worker usage CSV file')
98
- parser.add_argument('--debug', action='store_true', help='Enable debug mode')
99
-
100
- parser.add_argument('--save_to_file', type=str, help='Save the plot to the specified file', default=None)
101
-
102
- parser.add_argument('--no_plt_show', help='Disable showing the plot', action='store_true', default=False)
103
- args = parser.parse_args()
104
-
105
102
  if args.debug:
106
103
  print(f"Debug mode enabled. Run directory: {args.run_dir}")
107
104
 
@@ -111,7 +108,7 @@ def main() -> None:
111
108
  worker_usage_csv = os.path.join(args.run_dir, "worker_usage.csv")
112
109
  if os.path.exists(worker_usage_csv):
113
110
  try:
114
- plot_worker_usage(args, worker_usage_csv)
111
+ plot_worker_usage(worker_usage_csv)
115
112
  except Exception as e:
116
113
  helpers.log_error(f"Error: {e}")
117
114
  sys.exit(3)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omniopt2
3
- Version: 7010
3
+ Version: 7015
4
4
  Summary: Automatic highly parallelized hyperparameter optimizer based on Ax/Botorch
5
5
  Home-page: https://scads.ai/transfer-2/verfuegbare-software-dienste-en/omniopt/
6
6
  Author: Norman Koch
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omniopt2
3
- Version: 7010
3
+ Version: 7015
4
4
  Summary: Automatic highly parallelized hyperparameter optimizer based on Ax/Botorch
5
5
  Home-page: https://scads.ai/transfer-2/verfuegbare-software-dienste-en/omniopt/
6
6
  Author: Norman Koch
@@ -5,7 +5,7 @@ authors = [
5
5
  {email = "norman.koch@tu-dresden.de"},
6
6
  {name = "Norman Koch"}
7
7
  ]
8
- version = "7010"
8
+ version = "7015"
9
9
 
10
10
  readme = "README.md"
11
11
  dynamic = ["dependencies"]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes