omniopt2 9001__tar.gz → 9011__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 (41) hide show
  1. {omniopt2-9001 → omniopt2-9011}/.omniopt.py +21 -16
  2. {omniopt2-9001 → omniopt2-9011}/PKG-INFO +1 -1
  3. {omniopt2-9001 → omniopt2-9011}/omniopt2.egg-info/PKG-INFO +1 -1
  4. {omniopt2-9001 → omniopt2-9011}/pyproject.toml +1 -1
  5. {omniopt2-9001 → omniopt2-9011}/.colorfunctions.sh +0 -0
  6. {omniopt2-9001 → omniopt2-9011}/.dockerignore +0 -0
  7. {omniopt2-9001 → omniopt2-9011}/.general.sh +0 -0
  8. {omniopt2-9001 → omniopt2-9011}/.gitignore +0 -0
  9. {omniopt2-9001 → omniopt2-9011}/.helpers.py +0 -0
  10. {omniopt2-9001 → omniopt2-9011}/.omniopt_plot_cpu_ram_usage.py +0 -0
  11. {omniopt2-9001 → omniopt2-9011}/.omniopt_plot_general.py +0 -0
  12. {omniopt2-9001 → omniopt2-9011}/.omniopt_plot_gpu_usage.py +0 -0
  13. {omniopt2-9001 → omniopt2-9011}/.omniopt_plot_kde.py +0 -0
  14. {omniopt2-9001 → omniopt2-9011}/.omniopt_plot_scatter.py +0 -0
  15. {omniopt2-9001 → omniopt2-9011}/.omniopt_plot_scatter_generation_method.py +0 -0
  16. {omniopt2-9001 → omniopt2-9011}/.omniopt_plot_scatter_hex.py +0 -0
  17. {omniopt2-9001 → omniopt2-9011}/.omniopt_plot_time_and_exit_code.py +0 -0
  18. {omniopt2-9001 → omniopt2-9011}/.omniopt_plot_trial_index_result.py +0 -0
  19. {omniopt2-9001 → omniopt2-9011}/.omniopt_plot_worker.py +0 -0
  20. {omniopt2-9001 → omniopt2-9011}/.pareto.py +0 -0
  21. {omniopt2-9001 → omniopt2-9011}/.random_generator.py +0 -0
  22. {omniopt2-9001 → omniopt2-9011}/.shellscript_functions +0 -0
  23. {omniopt2-9001 → omniopt2-9011}/.tests/pylint.rc +0 -0
  24. {omniopt2-9001 → omniopt2-9011}/.tpe.py +0 -0
  25. {omniopt2-9001 → omniopt2-9011}/LICENSE +0 -0
  26. {omniopt2-9001 → omniopt2-9011}/MANIFEST.in +0 -0
  27. {omniopt2-9001 → omniopt2-9011}/README.md +0 -0
  28. {omniopt2-9001 → omniopt2-9011}/apt-dependencies.txt +0 -0
  29. {omniopt2-9001 → omniopt2-9011}/omniopt +0 -0
  30. {omniopt2-9001 → omniopt2-9011}/omniopt2.egg-info/SOURCES.txt +0 -0
  31. {omniopt2-9001 → omniopt2-9011}/omniopt2.egg-info/dependency_links.txt +0 -0
  32. {omniopt2-9001 → omniopt2-9011}/omniopt2.egg-info/requires.txt +0 -0
  33. {omniopt2-9001 → omniopt2-9011}/omniopt2.egg-info/top_level.txt +0 -0
  34. {omniopt2-9001 → omniopt2-9011}/omniopt_docker +0 -0
  35. {omniopt2-9001 → omniopt2-9011}/omniopt_evaluate +0 -0
  36. {omniopt2-9001 → omniopt2-9011}/omniopt_plot +0 -0
  37. {omniopt2-9001 → omniopt2-9011}/omniopt_share +0 -0
  38. {omniopt2-9001 → omniopt2-9011}/requirements.txt +0 -0
  39. {omniopt2-9001 → omniopt2-9011}/setup.cfg +0 -0
  40. {omniopt2-9001 → omniopt2-9011}/setup.py +0 -0
  41. {omniopt2-9001 → omniopt2-9011}/test_requirements.txt +0 -0
@@ -31,6 +31,7 @@ import psutil
31
31
 
32
32
  FORCE_EXIT: bool = False
33
33
 
34
+ LAST_LOG_TIME: int = 0
34
35
  last_msg_progressbar = ""
35
36
  last_msg_raw = None
36
37
  last_lock = threading.Lock()
@@ -2475,32 +2476,36 @@ def write_worker_usage() -> None:
2475
2476
  print_debug(f"WORKER_PERCENTAGE_USAGE seems to be empty. Not writing {worker_usage_file}")
2476
2477
 
2477
2478
  def log_system_usage() -> None:
2479
+ global LAST_LOG_TIME
2480
+
2481
+ now = time.time()
2482
+ if now - LAST_LOG_TIME < 30:
2483
+ return
2484
+
2485
+ LAST_LOG_TIME = int(now)
2486
+
2478
2487
  if not get_current_run_folder():
2479
2488
  return
2480
2489
 
2481
2490
  ram_cpu_csv_file_path = os.path.join(get_current_run_folder(), "cpu_ram_usage.csv")
2482
-
2483
2491
  makedirs(os.path.dirname(ram_cpu_csv_file_path))
2484
2492
 
2485
2493
  file_exists = os.path.isfile(ram_cpu_csv_file_path)
2486
2494
 
2487
- with open(ram_cpu_csv_file_path, mode='a', newline='', encoding="utf-8") as file:
2488
- writer = csv.writer(file)
2489
-
2490
- current_time = int(time.time())
2491
-
2492
- if process is not None:
2493
- mem_proc = process.memory_info()
2494
-
2495
- if mem_proc is not None:
2496
- ram_usage_mb = mem_proc.rss / (1024 * 1024)
2497
- cpu_usage_percent = psutil.cpu_percent(percpu=False)
2495
+ mem_proc = process.memory_info() if process else None
2496
+ if not mem_proc:
2497
+ return
2498
2498
 
2499
- if ram_usage_mb > 0 and cpu_usage_percent > 0:
2500
- if not file_exists:
2501
- writer.writerow(["timestamp", "ram_usage_mb", "cpu_usage_percent"])
2499
+ ram_usage_mb = mem_proc.rss / (1024 * 1024)
2500
+ cpu_usage_percent = psutil.cpu_percent(percpu=False)
2501
+ if ram_usage_mb <= 0 or cpu_usage_percent <= 0:
2502
+ return
2502
2503
 
2503
- writer.writerow([current_time, ram_usage_mb, cpu_usage_percent])
2504
+ with open(ram_cpu_csv_file_path, mode='a', newline='', encoding="utf-8") as file:
2505
+ writer = csv.writer(file)
2506
+ if not file_exists:
2507
+ writer.writerow(["timestamp", "ram_usage_mb", "cpu_usage_percent"])
2508
+ writer.writerow([int(now), ram_usage_mb, cpu_usage_percent])
2504
2509
 
2505
2510
  def write_process_info() -> None:
2506
2511
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omniopt2
3
- Version: 9001
3
+ Version: 9011
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: 9001
3
+ Version: 9011
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 = "9001"
8
+ version = "9011"
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
File without changes