omniopt2 7192__tar.gz → 7194__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-7192 → omniopt2-7194}/.omniopt.py +26 -18
  2. {omniopt2-7192 → omniopt2-7194}/PKG-INFO +1 -1
  3. {omniopt2-7192 → omniopt2-7194}/omniopt2.egg-info/PKG-INFO +1 -1
  4. {omniopt2-7192 → omniopt2-7194}/pyproject.toml +1 -1
  5. {omniopt2-7192 → omniopt2-7194}/.colorfunctions.sh +0 -0
  6. {omniopt2-7192 → omniopt2-7194}/.dockerignore +0 -0
  7. {omniopt2-7192 → omniopt2-7194}/.general.sh +0 -0
  8. {omniopt2-7192 → omniopt2-7194}/.gitignore +0 -0
  9. {omniopt2-7192 → omniopt2-7194}/.helpers.py +0 -0
  10. {omniopt2-7192 → omniopt2-7194}/.omniopt_plot_cpu_ram_usage.py +0 -0
  11. {omniopt2-7192 → omniopt2-7194}/.omniopt_plot_general.py +0 -0
  12. {omniopt2-7192 → omniopt2-7194}/.omniopt_plot_gpu_usage.py +0 -0
  13. {omniopt2-7192 → omniopt2-7194}/.omniopt_plot_kde.py +0 -0
  14. {omniopt2-7192 → omniopt2-7194}/.omniopt_plot_scatter.py +0 -0
  15. {omniopt2-7192 → omniopt2-7194}/.omniopt_plot_scatter_generation_method.py +0 -0
  16. {omniopt2-7192 → omniopt2-7194}/.omniopt_plot_scatter_hex.py +0 -0
  17. {omniopt2-7192 → omniopt2-7194}/.omniopt_plot_time_and_exit_code.py +0 -0
  18. {omniopt2-7192 → omniopt2-7194}/.omniopt_plot_trial_index_result.py +0 -0
  19. {omniopt2-7192 → omniopt2-7194}/.omniopt_plot_worker.py +0 -0
  20. {omniopt2-7192 → omniopt2-7194}/.random_generator.py +0 -0
  21. {omniopt2-7192 → omniopt2-7194}/.shellscript_functions +0 -0
  22. {omniopt2-7192 → omniopt2-7194}/.tpe.py +0 -0
  23. {omniopt2-7192 → omniopt2-7194}/LICENSE +0 -0
  24. {omniopt2-7192 → omniopt2-7194}/MANIFEST.in +0 -0
  25. {omniopt2-7192 → omniopt2-7194}/README.md +0 -0
  26. {omniopt2-7192 → omniopt2-7194}/apt-dependencies.txt +0 -0
  27. {omniopt2-7192 → omniopt2-7194}/omniopt +0 -0
  28. {omniopt2-7192 → omniopt2-7194}/omniopt2.egg-info/SOURCES.txt +0 -0
  29. {omniopt2-7192 → omniopt2-7194}/omniopt2.egg-info/dependency_links.txt +0 -0
  30. {omniopt2-7192 → omniopt2-7194}/omniopt2.egg-info/requires.txt +0 -0
  31. {omniopt2-7192 → omniopt2-7194}/omniopt2.egg-info/top_level.txt +0 -0
  32. {omniopt2-7192 → omniopt2-7194}/omniopt_docker +0 -0
  33. {omniopt2-7192 → omniopt2-7194}/omniopt_evaluate +0 -0
  34. {omniopt2-7192 → omniopt2-7194}/omniopt_plot +0 -0
  35. {omniopt2-7192 → omniopt2-7194}/omniopt_share +0 -0
  36. {omniopt2-7192 → omniopt2-7194}/requirements.txt +0 -0
  37. {omniopt2-7192 → omniopt2-7194}/setup.cfg +0 -0
  38. {omniopt2-7192 → omniopt2-7194}/setup.py +0 -0
  39. {omniopt2-7192 → omniopt2-7194}/test_requirements.txt +0 -0
@@ -2315,9 +2315,18 @@ def create_folder_and_file(folder: str) -> str:
2315
2315
  @beartype
2316
2316
  def get_program_code_from_out_file(f: str) -> str:
2317
2317
  if not os.path.exists(f):
2318
- print_debug(f"{f} not found")
2319
- print_red(f"\n{f} not found")
2320
- return ""
2318
+ if f.endswith(".err"):
2319
+ alt = f[:-4] + ".out"
2320
+ elif f.endswith(".out"):
2321
+ alt = f[:-4] + ".err"
2322
+ else:
2323
+ alt = ""
2324
+
2325
+ if alt and os.path.exists(alt):
2326
+ f = alt
2327
+ else:
2328
+ print_red(f"\nget_program_code_from_out_file: {f} not found")
2329
+ return ""
2321
2330
 
2322
2331
  fs = get_file_as_string(f)
2323
2332
 
@@ -6540,20 +6549,19 @@ def handle_restart(stdout_path: str, trial_index: int) -> None:
6540
6549
  else:
6541
6550
  print(f"Could not determine parameters from outfile {stdout_path} for restarting job")
6542
6551
 
6543
- #@beartype
6544
- #def check_alternate_path(path: str) -> str:
6545
- # if os.path.exists(path):
6546
- # return path
6547
- # if path.endswith('.out'):
6548
- # alt_path = path[:-4] + '.err'
6549
- # elif path.endswith('.err'):
6550
- # alt_path = path[:-4] + '.out'
6551
- # else:
6552
- # alt_path = None
6553
- # if alt_path and os.path.exists(alt_path):
6554
- # return alt_path
6555
- # # Wenn auch der alternative Pfad nicht existiert, gib den Originalpfad zurück
6556
- # return path
6552
+ @beartype
6553
+ def check_alternate_path(path: str) -> str:
6554
+ if os.path.exists(path):
6555
+ return path
6556
+ if path.endswith('.out'):
6557
+ alt_path = path[:-4] + '.err'
6558
+ elif path.endswith('.err'):
6559
+ alt_path = path[:-4] + '.out'
6560
+ else:
6561
+ alt_path = None
6562
+ if alt_path and os.path.exists(alt_path):
6563
+ return alt_path
6564
+ return path
6557
6565
 
6558
6566
  @beartype
6559
6567
  def handle_restart_on_different_node(stdout_path: str, hostname_from_out_file: Union[None, str], trial_index: int) -> None:
@@ -6569,7 +6577,7 @@ def handle_restart_on_different_node(stdout_path: str, hostname_from_out_file: U
6569
6577
 
6570
6578
  @beartype
6571
6579
  def _orchestrate(stdout_path: str, trial_index: int) -> None:
6572
- #stdout_path = check_alternate_path(stdout_path)
6580
+ stdout_path = check_alternate_path(stdout_path)
6573
6581
 
6574
6582
  behavs = check_orchestrator(stdout_path, trial_index)
6575
6583
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omniopt2
3
- Version: 7192
3
+ Version: 7194
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: 7192
3
+ Version: 7194
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 = "7192"
8
+ version = "7194"
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