omniopt2 8326__tar.gz → 8331__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.

Potentially problematic release.


This version of omniopt2 might be problematic. Click here for more details.

Files changed (40) hide show
  1. {omniopt2-8326 → omniopt2-8331}/.omniopt.py +32 -5
  2. {omniopt2-8326 → omniopt2-8331}/PKG-INFO +1 -1
  3. {omniopt2-8326 → omniopt2-8331}/omniopt2.egg-info/PKG-INFO +1 -1
  4. {omniopt2-8326 → omniopt2-8331}/pyproject.toml +1 -1
  5. {omniopt2-8326 → omniopt2-8331}/.colorfunctions.sh +0 -0
  6. {omniopt2-8326 → omniopt2-8331}/.dockerignore +0 -0
  7. {omniopt2-8326 → omniopt2-8331}/.general.sh +0 -0
  8. {omniopt2-8326 → omniopt2-8331}/.gitignore +0 -0
  9. {omniopt2-8326 → omniopt2-8331}/.helpers.py +0 -0
  10. {omniopt2-8326 → omniopt2-8331}/.omniopt_plot_cpu_ram_usage.py +0 -0
  11. {omniopt2-8326 → omniopt2-8331}/.omniopt_plot_general.py +0 -0
  12. {omniopt2-8326 → omniopt2-8331}/.omniopt_plot_gpu_usage.py +0 -0
  13. {omniopt2-8326 → omniopt2-8331}/.omniopt_plot_kde.py +0 -0
  14. {omniopt2-8326 → omniopt2-8331}/.omniopt_plot_scatter.py +0 -0
  15. {omniopt2-8326 → omniopt2-8331}/.omniopt_plot_scatter_generation_method.py +0 -0
  16. {omniopt2-8326 → omniopt2-8331}/.omniopt_plot_scatter_hex.py +0 -0
  17. {omniopt2-8326 → omniopt2-8331}/.omniopt_plot_time_and_exit_code.py +0 -0
  18. {omniopt2-8326 → omniopt2-8331}/.omniopt_plot_trial_index_result.py +0 -0
  19. {omniopt2-8326 → omniopt2-8331}/.omniopt_plot_worker.py +0 -0
  20. {omniopt2-8326 → omniopt2-8331}/.random_generator.py +0 -0
  21. {omniopt2-8326 → omniopt2-8331}/.shellscript_functions +0 -0
  22. {omniopt2-8326 → omniopt2-8331}/.tests/pylint.rc +0 -0
  23. {omniopt2-8326 → omniopt2-8331}/.tpe.py +0 -0
  24. {omniopt2-8326 → omniopt2-8331}/LICENSE +0 -0
  25. {omniopt2-8326 → omniopt2-8331}/MANIFEST.in +0 -0
  26. {omniopt2-8326 → omniopt2-8331}/README.md +0 -0
  27. {omniopt2-8326 → omniopt2-8331}/apt-dependencies.txt +0 -0
  28. {omniopt2-8326 → omniopt2-8331}/omniopt +0 -0
  29. {omniopt2-8326 → omniopt2-8331}/omniopt2.egg-info/SOURCES.txt +0 -0
  30. {omniopt2-8326 → omniopt2-8331}/omniopt2.egg-info/dependency_links.txt +0 -0
  31. {omniopt2-8326 → omniopt2-8331}/omniopt2.egg-info/requires.txt +0 -0
  32. {omniopt2-8326 → omniopt2-8331}/omniopt2.egg-info/top_level.txt +0 -0
  33. {omniopt2-8326 → omniopt2-8331}/omniopt_docker +0 -0
  34. {omniopt2-8326 → omniopt2-8331}/omniopt_evaluate +0 -0
  35. {omniopt2-8326 → omniopt2-8331}/omniopt_plot +0 -0
  36. {omniopt2-8326 → omniopt2-8331}/omniopt_share +0 -0
  37. {omniopt2-8326 → omniopt2-8331}/requirements.txt +0 -0
  38. {omniopt2-8326 → omniopt2-8331}/setup.cfg +0 -0
  39. {omniopt2-8326 → omniopt2-8331}/setup.py +0 -0
  40. {omniopt2-8326 → omniopt2-8331}/test_requirements.txt +0 -0
@@ -804,6 +804,7 @@ class ConfigLoader:
804
804
  gridsearch: bool
805
805
  auto_exclude_defective_hosts: bool
806
806
  debug: bool
807
+ debug_stack_trace_regex: Optional[str]
807
808
  num_restarts: int
808
809
  raw_samples: int
809
810
  show_generate_time_table: bool
@@ -991,6 +992,8 @@ class ConfigLoader:
991
992
  debug.add_argument('--prettyprint', help='Shows stdout and stderr in a pretty printed format', action='store_true', default=False)
992
993
  debug.add_argument('--runtime_debug', help='Logs which functions use most of the time', action='store_true', default=False)
993
994
  debug.add_argument('--debug_stack_regex', help='Only print debug messages if call stack matches any regex', type=str, default='')
995
+ debug.add_argument('--debug_stack_trace_regex', help='Show compact call stack with arrows if any function in stack matches regex', type=str, default=None)
996
+
994
997
  debug.add_argument('--show_func_name', help='Show func name before each execution and when it is done', action='store_true', default=False)
995
998
 
996
999
  def load_config(self: Any, config_path: str, file_format: str) -> dict:
@@ -7270,11 +7273,9 @@ def finish_previous_jobs(new_msgs: List[str] = []) -> None:
7270
7273
 
7271
7274
  print_debug(f"Finishing jobs took {finishing_jobs_runtime} second(s)")
7272
7275
 
7273
- save_results_csv()
7274
-
7275
- save_checkpoint()
7276
-
7277
7276
  if this_jobs_finished > 0:
7277
+ save_results_csv()
7278
+ save_checkpoint()
7278
7279
  progressbar_description([*new_msgs, f"finished {this_jobs_finished} {'job' if this_jobs_finished == 1 else 'jobs'}"])
7279
7280
 
7280
7281
  JOBS_FINISHED += this_jobs_finished
@@ -10478,7 +10479,7 @@ def main() -> None:
10478
10479
 
10479
10480
  set_global_generation_strategy()
10480
10481
 
10481
- start_worker_generators()
10482
+ #start_worker_generators()
10482
10483
 
10483
10484
  try:
10484
10485
  run_search_with_progress_bar()
@@ -11171,6 +11172,29 @@ def main_outside() -> None:
11171
11172
  else:
11172
11173
  end_program(True)
11173
11174
 
11175
+ def stack_trace_wrapper(func: Any, regex: Any = None) -> Any:
11176
+ pattern = re.compile(regex) if regex else None
11177
+
11178
+ def wrapped(*args, **kwargs):
11179
+ # nur prüfen ob diese Funktion den Trigger erfüllt
11180
+ if pattern and not pattern.search(func.__name__):
11181
+ return func(*args, **kwargs)
11182
+
11183
+ stack = inspect.stack()
11184
+ chain = []
11185
+ for frame in stack[1:]:
11186
+ fn = frame.function
11187
+ if fn in ("wrapped", "<module>"):
11188
+ continue
11189
+ chain.append(fn)
11190
+
11191
+ if chain:
11192
+ sys.stderr.write(" ⇒ ".join(reversed(chain)) + "\n")
11193
+
11194
+ return func(*args, **kwargs)
11195
+
11196
+ return wrapped
11197
+
11174
11198
  def auto_wrap_namespace(namespace: Any) -> Any:
11175
11199
  enable_beartype = any(os.getenv(v) for v in ("ENABLE_BEARTYPE", "CI"))
11176
11200
 
@@ -11200,6 +11224,9 @@ def auto_wrap_namespace(namespace: Any) -> Any:
11200
11224
  if args.show_func_name:
11201
11225
  wrapped = show_func_name_wrapper(wrapped)
11202
11226
 
11227
+ if args.debug_stack_trace_regex:
11228
+ wrapped = stack_trace_wrapper(wrapped, args.debug_stack_trace_regex)
11229
+
11203
11230
  namespace[name] = wrapped
11204
11231
 
11205
11232
  return namespace
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omniopt2
3
- Version: 8326
3
+ Version: 8331
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: 8326
3
+ Version: 8331
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 = "8326"
8
+ version = "8331"
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
File without changes
File without changes
File without changes