omniopt2 7193__tar.gz → 7195__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-7193 → omniopt2-7195}/.omniopt.py +26 -15
  2. {omniopt2-7193 → omniopt2-7195}/PKG-INFO +1 -1
  3. {omniopt2-7193 → omniopt2-7195}/omniopt2.egg-info/PKG-INFO +1 -1
  4. {omniopt2-7193 → omniopt2-7195}/pyproject.toml +1 -1
  5. {omniopt2-7193 → omniopt2-7195}/.colorfunctions.sh +0 -0
  6. {omniopt2-7193 → omniopt2-7195}/.dockerignore +0 -0
  7. {omniopt2-7193 → omniopt2-7195}/.general.sh +0 -0
  8. {omniopt2-7193 → omniopt2-7195}/.gitignore +0 -0
  9. {omniopt2-7193 → omniopt2-7195}/.helpers.py +0 -0
  10. {omniopt2-7193 → omniopt2-7195}/.omniopt_plot_cpu_ram_usage.py +0 -0
  11. {omniopt2-7193 → omniopt2-7195}/.omniopt_plot_general.py +0 -0
  12. {omniopt2-7193 → omniopt2-7195}/.omniopt_plot_gpu_usage.py +0 -0
  13. {omniopt2-7193 → omniopt2-7195}/.omniopt_plot_kde.py +0 -0
  14. {omniopt2-7193 → omniopt2-7195}/.omniopt_plot_scatter.py +0 -0
  15. {omniopt2-7193 → omniopt2-7195}/.omniopt_plot_scatter_generation_method.py +0 -0
  16. {omniopt2-7193 → omniopt2-7195}/.omniopt_plot_scatter_hex.py +0 -0
  17. {omniopt2-7193 → omniopt2-7195}/.omniopt_plot_time_and_exit_code.py +0 -0
  18. {omniopt2-7193 → omniopt2-7195}/.omniopt_plot_trial_index_result.py +0 -0
  19. {omniopt2-7193 → omniopt2-7195}/.omniopt_plot_worker.py +0 -0
  20. {omniopt2-7193 → omniopt2-7195}/.random_generator.py +0 -0
  21. {omniopt2-7193 → omniopt2-7195}/.shellscript_functions +0 -0
  22. {omniopt2-7193 → omniopt2-7195}/.tpe.py +0 -0
  23. {omniopt2-7193 → omniopt2-7195}/LICENSE +0 -0
  24. {omniopt2-7193 → omniopt2-7195}/MANIFEST.in +0 -0
  25. {omniopt2-7193 → omniopt2-7195}/README.md +0 -0
  26. {omniopt2-7193 → omniopt2-7195}/apt-dependencies.txt +0 -0
  27. {omniopt2-7193 → omniopt2-7195}/omniopt +0 -0
  28. {omniopt2-7193 → omniopt2-7195}/omniopt2.egg-info/SOURCES.txt +0 -0
  29. {omniopt2-7193 → omniopt2-7195}/omniopt2.egg-info/dependency_links.txt +0 -0
  30. {omniopt2-7193 → omniopt2-7195}/omniopt2.egg-info/requires.txt +0 -0
  31. {omniopt2-7193 → omniopt2-7195}/omniopt2.egg-info/top_level.txt +0 -0
  32. {omniopt2-7193 → omniopt2-7195}/omniopt_docker +0 -0
  33. {omniopt2-7193 → omniopt2-7195}/omniopt_evaluate +0 -0
  34. {omniopt2-7193 → omniopt2-7195}/omniopt_plot +0 -0
  35. {omniopt2-7193 → omniopt2-7195}/omniopt_share +0 -0
  36. {omniopt2-7193 → omniopt2-7195}/requirements.txt +0 -0
  37. {omniopt2-7193 → omniopt2-7195}/setup.cfg +0 -0
  38. {omniopt2-7193 → omniopt2-7195}/setup.py +0 -0
  39. {omniopt2-7193 → omniopt2-7195}/test_requirements.txt +0 -0
@@ -6018,6 +6018,7 @@ def get_python_errors() -> List[List[str]]:
6018
6018
 
6019
6019
  @beartype
6020
6020
  def get_first_line_of_file_that_contains_string(stdout_path: str, s: str) -> str:
6021
+ stdout_path = check_alternate_path(stdout_path)
6021
6022
  if not os.path.exists(stdout_path):
6022
6023
  print_debug(f"File {stdout_path} not found")
6023
6024
  return ""
@@ -6045,6 +6046,7 @@ def get_first_line_of_file_that_contains_string(stdout_path: str, s: str) -> str
6045
6046
 
6046
6047
  @beartype
6047
6048
  def check_for_python_errors(stdout_path: str, file_as_string: str) -> List[str]:
6049
+ stdout_path = check_alternate_path(stdout_path)
6048
6050
  errors: List[str] = []
6049
6051
 
6050
6052
  for search_array in get_python_errors():
@@ -6062,6 +6064,7 @@ def check_for_python_errors(stdout_path: str, file_as_string: str) -> List[str]:
6062
6064
 
6063
6065
  @beartype
6064
6066
  def get_errors_from_outfile(stdout_path: str) -> List[str]:
6067
+ stdout_path = check_alternate_path(stdout_path)
6065
6068
  file_as_string = get_file_as_string(stdout_path)
6066
6069
 
6067
6070
  program_code = get_program_code_from_out_file(stdout_path)
@@ -6098,6 +6101,7 @@ def get_errors_from_outfile(stdout_path: str) -> List[str]:
6098
6101
 
6099
6102
  @beartype
6100
6103
  def print_outfile_analyzed(stdout_path: str) -> None:
6104
+ stdout_path = check_alternate_path(stdout_path)
6101
6105
  errors = get_errors_from_outfile(stdout_path)
6102
6106
 
6103
6107
  _strs: List[str] = []
@@ -6129,6 +6133,7 @@ def print_outfile_analyzed(stdout_path: str) -> None:
6129
6133
 
6130
6134
  @beartype
6131
6135
  def get_parameters_from_outfile(stdout_path: str) -> Union[None, dict, str]:
6136
+ stdout_path = check_alternate_path(stdout_path)
6132
6137
  try:
6133
6138
  with open(stdout_path, mode='r', encoding="utf-8") as file:
6134
6139
  for line in file:
@@ -6400,6 +6405,7 @@ def finish_previous_jobs(new_msgs: List[str]) -> None:
6400
6405
 
6401
6406
  @beartype
6402
6407
  def get_alt_path_for_orchestrator(stdout_path: str) -> Optional[str]:
6408
+ stdout_path = check_alternate_path(stdout_path)
6403
6409
  alt_path = None
6404
6410
  if stdout_path.endswith(".err"):
6405
6411
  alt_path = stdout_path[:-4] + ".out"
@@ -6410,6 +6416,7 @@ def get_alt_path_for_orchestrator(stdout_path: str) -> Optional[str]:
6410
6416
 
6411
6417
  @beartype
6412
6418
  def check_orchestrator(stdout_path: str, trial_index: int) -> Optional[List[str]]:
6419
+ stdout_path = check_alternate_path(stdout_path)
6413
6420
  if not orchestrator or "errors" not in orchestrator:
6414
6421
  return []
6415
6422
 
@@ -6421,6 +6428,7 @@ def check_orchestrator(stdout_path: str, trial_index: int) -> Optional[List[str]
6421
6428
 
6422
6429
  @beartype
6423
6430
  def _check_orchestrator_read_stdout_with_fallback(stdout_path: str, trial_index: int) -> Optional[str]:
6431
+ stdout_path = check_alternate_path(stdout_path)
6424
6432
  try:
6425
6433
  return Path(stdout_path).read_text("UTF-8")
6426
6434
  except FileNotFoundError:
@@ -6437,6 +6445,7 @@ def _check_orchestrator_read_stdout_with_fallback(stdout_path: str, trial_index:
6437
6445
 
6438
6446
  @beartype
6439
6447
  def _check_orchestrator_register_missing_file(stdout_path: str, trial_index: int) -> None:
6448
+ stdout_path = check_alternate_path(stdout_path)
6440
6449
  if stdout_path not in ORCHESTRATE_TODO:
6441
6450
  ORCHESTRATE_TODO[stdout_path] = trial_index
6442
6451
  print_red(f"File not found: {stdout_path}, will try again later")
@@ -6532,6 +6541,7 @@ def orchestrator_start_trial(params_from_out_file: Union[dict, str], trial_index
6532
6541
 
6533
6542
  @beartype
6534
6543
  def handle_exclude_node(stdout_path: str, hostname_from_out_file: Union[None, str]) -> None:
6544
+ stdout_path = check_alternate_path(stdout_path)
6535
6545
  if hostname_from_out_file:
6536
6546
  if not is_already_in_defective_nodes(hostname_from_out_file):
6537
6547
  print_yellow(f"\nExcludeNode was triggered for node {hostname_from_out_file}")
@@ -6543,29 +6553,30 @@ def handle_exclude_node(stdout_path: str, hostname_from_out_file: Union[None, st
6543
6553
 
6544
6554
  @beartype
6545
6555
  def handle_restart(stdout_path: str, trial_index: int) -> None:
6556
+ stdout_path = check_alternate_path(stdout_path)
6546
6557
  params_from_out_file = get_parameters_from_outfile(stdout_path)
6547
6558
  if params_from_out_file:
6548
6559
  orchestrator_start_trial(params_from_out_file, trial_index)
6549
6560
  else:
6550
6561
  print(f"Could not determine parameters from outfile {stdout_path} for restarting job")
6551
6562
 
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
- # # Wenn auch der alternative Pfad nicht existiert, gib den Originalpfad zurück
6565
- # return path
6563
+ @beartype
6564
+ def check_alternate_path(path: str) -> str:
6565
+ if os.path.exists(path):
6566
+ return path
6567
+ if path.endswith('.out'):
6568
+ alt_path = path[:-4] + '.err'
6569
+ elif path.endswith('.err'):
6570
+ alt_path = path[:-4] + '.out'
6571
+ else:
6572
+ alt_path = None
6573
+ if alt_path and os.path.exists(alt_path):
6574
+ return alt_path
6575
+ return path
6566
6576
 
6567
6577
  @beartype
6568
6578
  def handle_restart_on_different_node(stdout_path: str, hostname_from_out_file: Union[None, str], trial_index: int) -> None:
6579
+ stdout_path = check_alternate_path(stdout_path)
6569
6580
  if hostname_from_out_file:
6570
6581
  if not is_already_in_defective_nodes(hostname_from_out_file):
6571
6582
  print_yellow(f"\nRestartOnDifferentNode was triggered for node {hostname_from_out_file}. Adding node to defective hosts list and restarting on another host.")
@@ -6578,7 +6589,7 @@ def handle_restart_on_different_node(stdout_path: str, hostname_from_out_file: U
6578
6589
 
6579
6590
  @beartype
6580
6591
  def _orchestrate(stdout_path: str, trial_index: int) -> None:
6581
- #stdout_path = check_alternate_path(stdout_path)
6592
+ stdout_path = check_alternate_path(stdout_path)
6582
6593
 
6583
6594
  behavs = check_orchestrator(stdout_path, trial_index)
6584
6595
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omniopt2
3
- Version: 7193
3
+ Version: 7195
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: 7193
3
+ Version: 7195
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 = "7193"
8
+ version = "7195"
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