omniopt2 7015__tar.gz → 7017__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-7015 → omniopt2-7017}/.omniopt.py +20 -0
  2. {omniopt2-7015 → omniopt2-7017}/PKG-INFO +1 -1
  3. {omniopt2-7015 → omniopt2-7017}/omniopt2.egg-info/PKG-INFO +1 -1
  4. {omniopt2-7015 → omniopt2-7017}/pyproject.toml +1 -1
  5. {omniopt2-7015 → omniopt2-7017}/.colorfunctions.sh +0 -0
  6. {omniopt2-7015 → omniopt2-7017}/.dockerignore +0 -0
  7. {omniopt2-7015 → omniopt2-7017}/.general.sh +0 -0
  8. {omniopt2-7015 → omniopt2-7017}/.gitignore +0 -0
  9. {omniopt2-7015 → omniopt2-7017}/.helpers.py +0 -0
  10. {omniopt2-7015 → omniopt2-7017}/.omniopt_plot_cpu_ram_usage.py +0 -0
  11. {omniopt2-7015 → omniopt2-7017}/.omniopt_plot_general.py +0 -0
  12. {omniopt2-7015 → omniopt2-7017}/.omniopt_plot_gpu_usage.py +0 -0
  13. {omniopt2-7015 → omniopt2-7017}/.omniopt_plot_kde.py +0 -0
  14. {omniopt2-7015 → omniopt2-7017}/.omniopt_plot_scatter.py +0 -0
  15. {omniopt2-7015 → omniopt2-7017}/.omniopt_plot_scatter_generation_method.py +0 -0
  16. {omniopt2-7015 → omniopt2-7017}/.omniopt_plot_scatter_hex.py +0 -0
  17. {omniopt2-7015 → omniopt2-7017}/.omniopt_plot_time_and_exit_code.py +0 -0
  18. {omniopt2-7015 → omniopt2-7017}/.omniopt_plot_trial_index_result.py +0 -0
  19. {omniopt2-7015 → omniopt2-7017}/.omniopt_plot_worker.py +0 -0
  20. {omniopt2-7015 → omniopt2-7017}/.random_generator.py +0 -0
  21. {omniopt2-7015 → omniopt2-7017}/.shellscript_functions +0 -0
  22. {omniopt2-7015 → omniopt2-7017}/LICENSE +0 -0
  23. {omniopt2-7015 → omniopt2-7017}/MANIFEST.in +0 -0
  24. {omniopt2-7015 → omniopt2-7017}/README.md +0 -0
  25. {omniopt2-7015 → omniopt2-7017}/apt-dependencies.txt +0 -0
  26. {omniopt2-7015 → omniopt2-7017}/omniopt +0 -0
  27. {omniopt2-7015 → omniopt2-7017}/omniopt2.egg-info/SOURCES.txt +0 -0
  28. {omniopt2-7015 → omniopt2-7017}/omniopt2.egg-info/dependency_links.txt +0 -0
  29. {omniopt2-7015 → omniopt2-7017}/omniopt2.egg-info/requires.txt +0 -0
  30. {omniopt2-7015 → omniopt2-7017}/omniopt2.egg-info/top_level.txt +0 -0
  31. {omniopt2-7015 → omniopt2-7017}/omniopt_docker +0 -0
  32. {omniopt2-7015 → omniopt2-7017}/omniopt_evaluate +0 -0
  33. {omniopt2-7015 → omniopt2-7017}/omniopt_plot +0 -0
  34. {omniopt2-7015 → omniopt2-7017}/omniopt_share +0 -0
  35. {omniopt2-7015 → omniopt2-7017}/requirements.txt +0 -0
  36. {omniopt2-7015 → omniopt2-7017}/setup.cfg +0 -0
  37. {omniopt2-7015 → omniopt2-7017}/setup.py +0 -0
  38. {omniopt2-7015 → omniopt2-7017}/test_requirements.txt +0 -0
@@ -6439,6 +6439,24 @@ def handle_restart(stdout_path: str, trial_index: int) -> None:
6439
6439
  else:
6440
6440
  print(f"Could not determine parameters from outfile {stdout_path} for restarting job")
6441
6441
 
6442
+ @beartype
6443
+ def check_alternate_path(path: str) -> str:
6444
+ if os.path.exists(path):
6445
+ return path
6446
+
6447
+ if path.endswith('.out'):
6448
+ alt_path = path[:-4] + '.err'
6449
+ elif path.endswith('.err'):
6450
+ alt_path = path[:-4] + '.out'
6451
+ else:
6452
+ alt_path = None
6453
+
6454
+ if alt_path and os.path.exists(alt_path):
6455
+ return alt_path
6456
+
6457
+ # Wenn auch der alternative Pfad nicht existiert, gib den Originalpfad zurück
6458
+ return path
6459
+
6442
6460
  @beartype
6443
6461
  def handle_restart_on_different_node(stdout_path: str, hostname_from_out_file: Union[None, str], trial_index: int) -> None:
6444
6462
  if hostname_from_out_file:
@@ -6453,6 +6471,8 @@ def handle_restart_on_different_node(stdout_path: str, hostname_from_out_file: U
6453
6471
 
6454
6472
  @beartype
6455
6473
  def _orchestrate(stdout_path: str, trial_index: int) -> None:
6474
+ stdout_path = check_alternate_path(stdout_path)
6475
+
6456
6476
  behavs = check_orchestrator(stdout_path, trial_index)
6457
6477
 
6458
6478
  if not behavs or behavs is None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omniopt2
3
- Version: 7015
3
+ Version: 7017
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: 7015
3
+ Version: 7017
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 = "7015"
8
+ version = "7017"
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