omniopt2 7321__tar.gz → 7323__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-7321 → omniopt2-7323}/.omniopt.py +15 -10
  2. {omniopt2-7321 → omniopt2-7323}/PKG-INFO +1 -1
  3. {omniopt2-7321 → omniopt2-7323}/omniopt2.egg-info/PKG-INFO +1 -1
  4. {omniopt2-7321 → omniopt2-7323}/pyproject.toml +1 -1
  5. {omniopt2-7321 → omniopt2-7323}/.colorfunctions.sh +0 -0
  6. {omniopt2-7321 → omniopt2-7323}/.dockerignore +0 -0
  7. {omniopt2-7321 → omniopt2-7323}/.general.sh +0 -0
  8. {omniopt2-7321 → omniopt2-7323}/.gitignore +0 -0
  9. {omniopt2-7321 → omniopt2-7323}/.helpers.py +0 -0
  10. {omniopt2-7321 → omniopt2-7323}/.omniopt_plot_cpu_ram_usage.py +0 -0
  11. {omniopt2-7321 → omniopt2-7323}/.omniopt_plot_general.py +0 -0
  12. {omniopt2-7321 → omniopt2-7323}/.omniopt_plot_gpu_usage.py +0 -0
  13. {omniopt2-7321 → omniopt2-7323}/.omniopt_plot_kde.py +0 -0
  14. {omniopt2-7321 → omniopt2-7323}/.omniopt_plot_scatter.py +0 -0
  15. {omniopt2-7321 → omniopt2-7323}/.omniopt_plot_scatter_generation_method.py +0 -0
  16. {omniopt2-7321 → omniopt2-7323}/.omniopt_plot_scatter_hex.py +0 -0
  17. {omniopt2-7321 → omniopt2-7323}/.omniopt_plot_time_and_exit_code.py +0 -0
  18. {omniopt2-7321 → omniopt2-7323}/.omniopt_plot_trial_index_result.py +0 -0
  19. {omniopt2-7321 → omniopt2-7323}/.omniopt_plot_worker.py +0 -0
  20. {omniopt2-7321 → omniopt2-7323}/.random_generator.py +0 -0
  21. {omniopt2-7321 → omniopt2-7323}/.shellscript_functions +0 -0
  22. {omniopt2-7321 → omniopt2-7323}/.tpe.py +0 -0
  23. {omniopt2-7321 → omniopt2-7323}/LICENSE +0 -0
  24. {omniopt2-7321 → omniopt2-7323}/MANIFEST.in +0 -0
  25. {omniopt2-7321 → omniopt2-7323}/README.md +0 -0
  26. {omniopt2-7321 → omniopt2-7323}/apt-dependencies.txt +0 -0
  27. {omniopt2-7321 → omniopt2-7323}/omniopt +0 -0
  28. {omniopt2-7321 → omniopt2-7323}/omniopt2.egg-info/SOURCES.txt +0 -0
  29. {omniopt2-7321 → omniopt2-7323}/omniopt2.egg-info/dependency_links.txt +0 -0
  30. {omniopt2-7321 → omniopt2-7323}/omniopt2.egg-info/requires.txt +0 -0
  31. {omniopt2-7321 → omniopt2-7323}/omniopt2.egg-info/top_level.txt +0 -0
  32. {omniopt2-7321 → omniopt2-7323}/omniopt_docker +0 -0
  33. {omniopt2-7321 → omniopt2-7323}/omniopt_evaluate +0 -0
  34. {omniopt2-7321 → omniopt2-7323}/omniopt_plot +0 -0
  35. {omniopt2-7321 → omniopt2-7323}/omniopt_share +0 -0
  36. {omniopt2-7321 → omniopt2-7323}/requirements.txt +0 -0
  37. {omniopt2-7321 → omniopt2-7323}/setup.cfg +0 -0
  38. {omniopt2-7321 → omniopt2-7323}/setup.py +0 -0
  39. {omniopt2-7321 → omniopt2-7323}/test_requirements.txt +0 -0
@@ -1829,24 +1829,29 @@ def init_storage(db_url: str):
1829
1829
 
1830
1830
  @beartype
1831
1831
  def try_saving_to_db() -> None:
1832
- global initialized_storage
1833
-
1834
- db_url = f"sqlite:////{get_current_run_folder()}/database.db"
1832
+ try:
1833
+ global initialized_storage
1835
1834
 
1836
- if args.db_url:
1837
- db_url = args.db_url
1835
+ db_url = f"sqlite:////{get_current_run_folder()}/database.db"
1838
1836
 
1839
- if not initialized_storage:
1840
- init_storage(db_url)
1837
+ if args.db_url:
1838
+ db_url = args.db_url
1841
1839
 
1842
- initialized_storage = True
1840
+ if not initialized_storage:
1841
+ init_storage(db_url)
1843
1842
 
1844
- save_experiment_to_db(ax_client.experiment)
1845
- save_generation_strategy(global_gs)
1843
+ initialized_storage = True
1846
1844
 
1845
+ save_experiment_to_db(ax_client.experiment)
1846
+ save_generation_strategy(global_gs)
1847
+ except Exception as e:
1848
+ print_debug(f"Failed trying to save sqlite3-DB: {e}")
1847
1849
 
1848
1850
  @beartype
1849
1851
  def save_results_csv() -> Optional[str]:
1852
+ if args.dryrun:
1853
+ return None
1854
+
1850
1855
  pd_csv: str = f'{get_current_run_folder()}/{PD_CSV_FILENAME}'
1851
1856
  pd_json: str = f'{get_current_run_folder()}/state_files/pd.json'
1852
1857
  state_files_folder: str = f"{get_current_run_folder()}/state_files/"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omniopt2
3
- Version: 7321
3
+ Version: 7323
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: 7321
3
+ Version: 7323
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 = "7321"
8
+ version = "7323"
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