omniopt2 7100__tar.gz → 7101__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 (39) hide show
  1. {omniopt2-7100 → omniopt2-7101}/.omniopt.py +47 -32
  2. {omniopt2-7100 → omniopt2-7101}/PKG-INFO +1 -1
  3. {omniopt2-7100 → omniopt2-7101}/omniopt2.egg-info/PKG-INFO +1 -1
  4. {omniopt2-7100 → omniopt2-7101}/pyproject.toml +1 -1
  5. {omniopt2-7100 → omniopt2-7101}/.colorfunctions.sh +0 -0
  6. {omniopt2-7100 → omniopt2-7101}/.dockerignore +0 -0
  7. {omniopt2-7100 → omniopt2-7101}/.general.sh +0 -0
  8. {omniopt2-7100 → omniopt2-7101}/.gitignore +0 -0
  9. {omniopt2-7100 → omniopt2-7101}/.helpers.py +0 -0
  10. {omniopt2-7100 → omniopt2-7101}/.omniopt_plot_cpu_ram_usage.py +0 -0
  11. {omniopt2-7100 → omniopt2-7101}/.omniopt_plot_general.py +0 -0
  12. {omniopt2-7100 → omniopt2-7101}/.omniopt_plot_gpu_usage.py +0 -0
  13. {omniopt2-7100 → omniopt2-7101}/.omniopt_plot_kde.py +0 -0
  14. {omniopt2-7100 → omniopt2-7101}/.omniopt_plot_scatter.py +0 -0
  15. {omniopt2-7100 → omniopt2-7101}/.omniopt_plot_scatter_generation_method.py +0 -0
  16. {omniopt2-7100 → omniopt2-7101}/.omniopt_plot_scatter_hex.py +0 -0
  17. {omniopt2-7100 → omniopt2-7101}/.omniopt_plot_time_and_exit_code.py +0 -0
  18. {omniopt2-7100 → omniopt2-7101}/.omniopt_plot_trial_index_result.py +0 -0
  19. {omniopt2-7100 → omniopt2-7101}/.omniopt_plot_worker.py +0 -0
  20. {omniopt2-7100 → omniopt2-7101}/.random_generator.py +0 -0
  21. {omniopt2-7100 → omniopt2-7101}/.shellscript_functions +0 -0
  22. {omniopt2-7100 → omniopt2-7101}/.tpe.py +0 -0
  23. {omniopt2-7100 → omniopt2-7101}/LICENSE +0 -0
  24. {omniopt2-7100 → omniopt2-7101}/MANIFEST.in +0 -0
  25. {omniopt2-7100 → omniopt2-7101}/README.md +0 -0
  26. {omniopt2-7100 → omniopt2-7101}/apt-dependencies.txt +0 -0
  27. {omniopt2-7100 → omniopt2-7101}/omniopt +0 -0
  28. {omniopt2-7100 → omniopt2-7101}/omniopt2.egg-info/SOURCES.txt +0 -0
  29. {omniopt2-7100 → omniopt2-7101}/omniopt2.egg-info/dependency_links.txt +0 -0
  30. {omniopt2-7100 → omniopt2-7101}/omniopt2.egg-info/requires.txt +0 -0
  31. {omniopt2-7100 → omniopt2-7101}/omniopt2.egg-info/top_level.txt +0 -0
  32. {omniopt2-7100 → omniopt2-7101}/omniopt_docker +0 -0
  33. {omniopt2-7100 → omniopt2-7101}/omniopt_evaluate +0 -0
  34. {omniopt2-7100 → omniopt2-7101}/omniopt_plot +0 -0
  35. {omniopt2-7100 → omniopt2-7101}/omniopt_share +0 -0
  36. {omniopt2-7100 → omniopt2-7101}/requirements.txt +0 -0
  37. {omniopt2-7100 → omniopt2-7101}/setup.cfg +0 -0
  38. {omniopt2-7100 → omniopt2-7101}/setup.py +0 -0
  39. {omniopt2-7100 → omniopt2-7101}/test_requirements.txt +0 -0
@@ -6342,45 +6342,60 @@ def get_alt_path_for_orchestrator(stdout_path: str) -> Optional[str]:
6342
6342
  return alt_path
6343
6343
 
6344
6344
  @beartype
6345
- def check_orchestrator(stdout_path: str, trial_index: int) -> Optional[list]:
6346
- behavs: list = []
6345
+ def check_orchestrator(stdout_path: str, trial_index: int) -> Optional[List[str]]:
6346
+ if not orchestrator or "errors" not in orchestrator:
6347
+ return []
6347
6348
 
6348
- if orchestrator and "errors" in orchestrator:
6349
- try:
6350
- stdout = Path(stdout_path).read_text("UTF-8")
6351
- except FileNotFoundError:
6352
- alt_path = get_alt_path_for_orchestrator(stdout_path)
6349
+ stdout = _check_orchestrator_read_stdout_with_fallback(stdout_path, trial_index)
6350
+ if stdout is None:
6351
+ return None
6353
6352
 
6354
- if alt_path and alt_path is not None and Path(alt_path).exists():
6355
- stdout_path = alt_path
6356
- try:
6357
- stdout = Path(stdout_path).read_text("UTF-8")
6358
- except FileNotFoundError:
6359
- stdout = None
6360
- else:
6361
- stdout = None
6353
+ return _check_orchestrator_find_behaviors(stdout, orchestrator["errors"])
6362
6354
 
6363
- if stdout is None:
6364
- orchestrate_todo_copy = ORCHESTRATE_TODO
6365
- if stdout_path not in orchestrate_todo_copy.keys():
6366
- ORCHESTRATE_TODO[stdout_path] = trial_index
6367
- print_red(f"File not found: {stdout_path}, will try again later")
6368
- else:
6369
- print_red(f"File not found: {stdout_path}, not trying again")
6355
+
6356
+ @beartype
6357
+ def _check_orchestrator_read_stdout_with_fallback(stdout_path: str, trial_index: int) -> Optional[str]:
6358
+ try:
6359
+ return Path(stdout_path).read_text("UTF-8")
6360
+ except FileNotFoundError:
6361
+ alt_path = get_alt_path_for_orchestrator(stdout_path)
6362
+
6363
+ if alt_path and Path(alt_path).exists():
6364
+ try:
6365
+ return Path(alt_path).read_text("UTF-8")
6366
+ except FileNotFoundError:
6370
6367
  return None
6371
6368
 
6372
- for oc in orchestrator["errors"]:
6373
- name = oc["name"]
6374
- match_strings = oc["match_strings"]
6375
- behavior = oc["behavior"]
6369
+ _check_orchestrator_register_missing_file(stdout_path, trial_index)
6370
+ return None
6371
+
6372
+
6373
+ @beartype
6374
+ def _check_orchestrator_register_missing_file(stdout_path: str, trial_index: int) -> None:
6375
+ if stdout_path not in ORCHESTRATE_TODO:
6376
+ ORCHESTRATE_TODO[stdout_path] = trial_index
6377
+ print_red(f"File not found: {stdout_path}, will try again later")
6378
+ else:
6379
+ print_red(f"File not found: {stdout_path}, not trying again")
6380
+
6381
+
6382
+ @beartype
6383
+ def _check_orchestrator_find_behaviors(stdout: str, errors: List[Dict[str, Any]]) -> List[str]:
6384
+ behaviors: List[str] = []
6385
+ stdout_lower = stdout.lower()
6386
+
6387
+ for error in errors:
6388
+ name = error.get("name", "")
6389
+ match_strings = error.get("match_strings", [])
6390
+ behavior = error.get("behavior", "")
6376
6391
 
6377
- for match_string in match_strings:
6378
- if match_string.lower() in stdout.lower():
6379
- if behavior not in behavs:
6380
- print_debug(f"Appending behavior {behavior}, orchestrator-error-name: {name}")
6381
- behavs.append(behavior)
6392
+ for match_string in match_strings:
6393
+ if match_string.lower() in stdout_lower:
6394
+ if behavior not in behaviors:
6395
+ print_debug(f"Appending behavior {behavior}, orchestrator-error-name: {name}")
6396
+ behaviors.append(behavior)
6382
6397
 
6383
- return behavs
6398
+ return behaviors
6384
6399
 
6385
6400
  @beartype
6386
6401
  def orchestrate_job(job: Job, trial_index: int) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omniopt2
3
- Version: 7100
3
+ Version: 7101
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: 7100
3
+ Version: 7101
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 = "7100"
8
+ version = "7101"
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