omniopt2 7100__py3-none-any.whl → 7101__py3-none-any.whl
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.
- .omniopt.py +47 -32
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/.omniopt.py +47 -32
- {omniopt2-7100.dist-info → omniopt2-7101.dist-info}/METADATA +1 -1
- {omniopt2-7100.dist-info → omniopt2-7101.dist-info}/RECORD +35 -35
- omniopt2.egg-info/PKG-INFO +1 -1
- pyproject.toml +1 -1
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/.colorfunctions.sh +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/.general.sh +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/.helpers.py +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/.omniopt_plot_cpu_ram_usage.py +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/.omniopt_plot_general.py +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/.omniopt_plot_gpu_usage.py +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/.omniopt_plot_kde.py +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/.omniopt_plot_scatter.py +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/.omniopt_plot_scatter_generation_method.py +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/.omniopt_plot_scatter_hex.py +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/.omniopt_plot_time_and_exit_code.py +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/.omniopt_plot_trial_index_result.py +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/.omniopt_plot_worker.py +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/.random_generator.py +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/.shellscript_functions +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/.tpe.py +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/LICENSE +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/apt-dependencies.txt +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/omniopt +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/omniopt_docker +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/omniopt_evaluate +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/omniopt_plot +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/omniopt_share +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/requirements.txt +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/setup.py +0 -0
- {omniopt2-7100.data → omniopt2-7101.data}/data/bin/test_requirements.txt +0 -0
- {omniopt2-7100.dist-info → omniopt2-7101.dist-info}/WHEEL +0 -0
- {omniopt2-7100.dist-info → omniopt2-7101.dist-info}/licenses/LICENSE +0 -0
- {omniopt2-7100.dist-info → omniopt2-7101.dist-info}/top_level.txt +0 -0
.omniopt.py
CHANGED
@@ -6342,45 +6342,60 @@ def get_alt_path_for_orchestrator(stdout_path: str) -> Optional[str]:
|
|
6342
6342
|
return alt_path
|
6343
6343
|
|
6344
6344
|
@beartype
|
6345
|
-
def check_orchestrator(stdout_path: str, trial_index: int) -> Optional[
|
6346
|
-
|
6345
|
+
def check_orchestrator(stdout_path: str, trial_index: int) -> Optional[List[str]]:
|
6346
|
+
if not orchestrator or "errors" not in orchestrator:
|
6347
|
+
return []
|
6347
6348
|
|
6348
|
-
|
6349
|
-
|
6350
|
-
|
6351
|
-
except FileNotFoundError:
|
6352
|
-
alt_path = get_alt_path_for_orchestrator(stdout_path)
|
6349
|
+
stdout = _check_orchestrator_read_stdout_with_fallback(stdout_path, trial_index)
|
6350
|
+
if stdout is None:
|
6351
|
+
return None
|
6353
6352
|
|
6354
|
-
|
6355
|
-
stdout_path = alt_path
|
6356
|
-
try:
|
6357
|
-
stdout = Path(stdout_path).read_text("UTF-8")
|
6358
|
-
except FileNotFoundError:
|
6359
|
-
stdout = None
|
6360
|
-
else:
|
6361
|
-
stdout = None
|
6353
|
+
return _check_orchestrator_find_behaviors(stdout, orchestrator["errors"])
|
6362
6354
|
|
6363
|
-
|
6364
|
-
|
6365
|
-
|
6366
|
-
|
6367
|
-
|
6368
|
-
|
6369
|
-
|
6355
|
+
|
6356
|
+
@beartype
|
6357
|
+
def _check_orchestrator_read_stdout_with_fallback(stdout_path: str, trial_index: int) -> Optional[str]:
|
6358
|
+
try:
|
6359
|
+
return Path(stdout_path).read_text("UTF-8")
|
6360
|
+
except FileNotFoundError:
|
6361
|
+
alt_path = get_alt_path_for_orchestrator(stdout_path)
|
6362
|
+
|
6363
|
+
if alt_path and Path(alt_path).exists():
|
6364
|
+
try:
|
6365
|
+
return Path(alt_path).read_text("UTF-8")
|
6366
|
+
except FileNotFoundError:
|
6370
6367
|
return None
|
6371
6368
|
|
6372
|
-
|
6373
|
-
|
6374
|
-
|
6375
|
-
|
6369
|
+
_check_orchestrator_register_missing_file(stdout_path, trial_index)
|
6370
|
+
return None
|
6371
|
+
|
6372
|
+
|
6373
|
+
@beartype
|
6374
|
+
def _check_orchestrator_register_missing_file(stdout_path: str, trial_index: int) -> None:
|
6375
|
+
if stdout_path not in ORCHESTRATE_TODO:
|
6376
|
+
ORCHESTRATE_TODO[stdout_path] = trial_index
|
6377
|
+
print_red(f"File not found: {stdout_path}, will try again later")
|
6378
|
+
else:
|
6379
|
+
print_red(f"File not found: {stdout_path}, not trying again")
|
6380
|
+
|
6381
|
+
|
6382
|
+
@beartype
|
6383
|
+
def _check_orchestrator_find_behaviors(stdout: str, errors: List[Dict[str, Any]]) -> List[str]:
|
6384
|
+
behaviors: List[str] = []
|
6385
|
+
stdout_lower = stdout.lower()
|
6386
|
+
|
6387
|
+
for error in errors:
|
6388
|
+
name = error.get("name", "")
|
6389
|
+
match_strings = error.get("match_strings", [])
|
6390
|
+
behavior = error.get("behavior", "")
|
6376
6391
|
|
6377
|
-
|
6378
|
-
|
6379
|
-
|
6380
|
-
|
6381
|
-
|
6392
|
+
for match_string in match_strings:
|
6393
|
+
if match_string.lower() in stdout_lower:
|
6394
|
+
if behavior not in behaviors:
|
6395
|
+
print_debug(f"Appending behavior {behavior}, orchestrator-error-name: {name}")
|
6396
|
+
behaviors.append(behavior)
|
6382
6397
|
|
6383
|
-
return
|
6398
|
+
return behaviors
|
6384
6399
|
|
6385
6400
|
@beartype
|
6386
6401
|
def orchestrate_job(job: Job, trial_index: int) -> None:
|
@@ -6342,45 +6342,60 @@ def get_alt_path_for_orchestrator(stdout_path: str) -> Optional[str]:
|
|
6342
6342
|
return alt_path
|
6343
6343
|
|
6344
6344
|
@beartype
|
6345
|
-
def check_orchestrator(stdout_path: str, trial_index: int) -> Optional[
|
6346
|
-
|
6345
|
+
def check_orchestrator(stdout_path: str, trial_index: int) -> Optional[List[str]]:
|
6346
|
+
if not orchestrator or "errors" not in orchestrator:
|
6347
|
+
return []
|
6347
6348
|
|
6348
|
-
|
6349
|
-
|
6350
|
-
|
6351
|
-
except FileNotFoundError:
|
6352
|
-
alt_path = get_alt_path_for_orchestrator(stdout_path)
|
6349
|
+
stdout = _check_orchestrator_read_stdout_with_fallback(stdout_path, trial_index)
|
6350
|
+
if stdout is None:
|
6351
|
+
return None
|
6353
6352
|
|
6354
|
-
|
6355
|
-
stdout_path = alt_path
|
6356
|
-
try:
|
6357
|
-
stdout = Path(stdout_path).read_text("UTF-8")
|
6358
|
-
except FileNotFoundError:
|
6359
|
-
stdout = None
|
6360
|
-
else:
|
6361
|
-
stdout = None
|
6353
|
+
return _check_orchestrator_find_behaviors(stdout, orchestrator["errors"])
|
6362
6354
|
|
6363
|
-
|
6364
|
-
|
6365
|
-
|
6366
|
-
|
6367
|
-
|
6368
|
-
|
6369
|
-
|
6355
|
+
|
6356
|
+
@beartype
|
6357
|
+
def _check_orchestrator_read_stdout_with_fallback(stdout_path: str, trial_index: int) -> Optional[str]:
|
6358
|
+
try:
|
6359
|
+
return Path(stdout_path).read_text("UTF-8")
|
6360
|
+
except FileNotFoundError:
|
6361
|
+
alt_path = get_alt_path_for_orchestrator(stdout_path)
|
6362
|
+
|
6363
|
+
if alt_path and Path(alt_path).exists():
|
6364
|
+
try:
|
6365
|
+
return Path(alt_path).read_text("UTF-8")
|
6366
|
+
except FileNotFoundError:
|
6370
6367
|
return None
|
6371
6368
|
|
6372
|
-
|
6373
|
-
|
6374
|
-
|
6375
|
-
|
6369
|
+
_check_orchestrator_register_missing_file(stdout_path, trial_index)
|
6370
|
+
return None
|
6371
|
+
|
6372
|
+
|
6373
|
+
@beartype
|
6374
|
+
def _check_orchestrator_register_missing_file(stdout_path: str, trial_index: int) -> None:
|
6375
|
+
if stdout_path not in ORCHESTRATE_TODO:
|
6376
|
+
ORCHESTRATE_TODO[stdout_path] = trial_index
|
6377
|
+
print_red(f"File not found: {stdout_path}, will try again later")
|
6378
|
+
else:
|
6379
|
+
print_red(f"File not found: {stdout_path}, not trying again")
|
6380
|
+
|
6381
|
+
|
6382
|
+
@beartype
|
6383
|
+
def _check_orchestrator_find_behaviors(stdout: str, errors: List[Dict[str, Any]]) -> List[str]:
|
6384
|
+
behaviors: List[str] = []
|
6385
|
+
stdout_lower = stdout.lower()
|
6386
|
+
|
6387
|
+
for error in errors:
|
6388
|
+
name = error.get("name", "")
|
6389
|
+
match_strings = error.get("match_strings", [])
|
6390
|
+
behavior = error.get("behavior", "")
|
6376
6391
|
|
6377
|
-
|
6378
|
-
|
6379
|
-
|
6380
|
-
|
6381
|
-
|
6392
|
+
for match_string in match_strings:
|
6393
|
+
if match_string.lower() in stdout_lower:
|
6394
|
+
if behavior not in behaviors:
|
6395
|
+
print_debug(f"Appending behavior {behavior}, orchestrator-error-name: {name}")
|
6396
|
+
behaviors.append(behavior)
|
6382
6397
|
|
6383
|
-
return
|
6398
|
+
return behaviors
|
6384
6399
|
|
6385
6400
|
@beartype
|
6386
6401
|
def orchestrate_job(job: Job, trial_index: int) -> None:
|
@@ -3,7 +3,7 @@
|
|
3
3
|
.general.sh,sha256=uyGMN8xNToQ0v50KoiYxm6jRmgf0orroOaodM_Nuq30,2107
|
4
4
|
.gitignore,sha256=OMaFWOR6wxjAlI85rF3euQcjQFFAl1F34abZkltKnaU,3714
|
5
5
|
.helpers.py,sha256=srrRn0QBzG8JpNbHAYG2k1rQY6JYrUrNdTj-tDMJSyg,30526
|
6
|
-
.omniopt.py,sha256=
|
6
|
+
.omniopt.py,sha256=l68qHOFvLcFaLUpzGLTzlC9deUOj7-nfQCkgmCjigA0,376112
|
7
7
|
.omniopt_plot_cpu_ram_usage.py,sha256=DbOAmdrbcZtsMnHJgHfeRngjtv6zX5J0axyua_dYezc,3932
|
8
8
|
.omniopt_plot_general.py,sha256=ZERZJkvVOoJhi7SszmTF1Iln-_08_0Aki48u3LHUW-k,6809
|
9
9
|
.omniopt_plot_gpu_usage.py,sha256=ojxVicwSoiyl7f3c-6lLuT2EpyPcSJKEcbp75LgDY2k,5107
|
@@ -26,44 +26,44 @@ omniopt_docker,sha256=LWVUeyvmA5AKqAHiH9jBUkR5uZ6AHMnSy0eET7mK6E4,3602
|
|
26
26
|
omniopt_evaluate,sha256=9oBh0_ikCuIz_aJQZrN0j39NDiIDYoSvEFmSVIoFjJE,23842
|
27
27
|
omniopt_plot,sha256=Z8ZR10p-ZRSgMeVPO-wVCJ8lk-LQtntjZ9Bk9RifCIs,13360
|
28
28
|
omniopt_share,sha256=7g5I7YdoWcA6_GDwWwq0xPf23qiVc_VDrm9ySLH7SH0,14051
|
29
|
-
pyproject.toml,sha256=
|
29
|
+
pyproject.toml,sha256=t5GOpDxzliwvQClJYArBJTdV8vtU_S2dg28lIoS9Ye4,397
|
30
30
|
requirements.txt,sha256=QsRYgd43IXr8rN9m0CxufI9mEneBrDeKh4s8E_W2xwI,287
|
31
31
|
setup.cfg,sha256=HEc8uu6NpfxG5_AVh5SvXOpEFMNKPPPxgMIAH144vT4,38
|
32
32
|
test_requirements.txt,sha256=dnCbKmKalrVzNZ_-iQWf1xCxcnDsdGuhbDAr9XlGm-U,477
|
33
|
-
omniopt2-
|
34
|
-
omniopt2-
|
35
|
-
omniopt2-
|
36
|
-
omniopt2-
|
37
|
-
omniopt2-
|
38
|
-
omniopt2-
|
39
|
-
omniopt2-
|
40
|
-
omniopt2-
|
41
|
-
omniopt2-
|
42
|
-
omniopt2-
|
43
|
-
omniopt2-
|
44
|
-
omniopt2-
|
45
|
-
omniopt2-
|
46
|
-
omniopt2-
|
47
|
-
omniopt2-
|
48
|
-
omniopt2-
|
49
|
-
omniopt2-
|
50
|
-
omniopt2-
|
51
|
-
omniopt2-
|
52
|
-
omniopt2-
|
53
|
-
omniopt2-
|
54
|
-
omniopt2-
|
55
|
-
omniopt2-
|
56
|
-
omniopt2-
|
57
|
-
omniopt2-
|
58
|
-
omniopt2-
|
59
|
-
omniopt2-
|
60
|
-
omniopt2-
|
61
|
-
omniopt2.egg-info/PKG-INFO,sha256=
|
33
|
+
omniopt2-7101.data/data/bin/.colorfunctions.sh,sha256=CDlgjwrsrHR_E6c-Qak5wZlotArXm-nf9sVvXePzGZA,1083
|
34
|
+
omniopt2-7101.data/data/bin/.general.sh,sha256=uyGMN8xNToQ0v50KoiYxm6jRmgf0orroOaodM_Nuq30,2107
|
35
|
+
omniopt2-7101.data/data/bin/.helpers.py,sha256=srrRn0QBzG8JpNbHAYG2k1rQY6JYrUrNdTj-tDMJSyg,30526
|
36
|
+
omniopt2-7101.data/data/bin/.omniopt.py,sha256=l68qHOFvLcFaLUpzGLTzlC9deUOj7-nfQCkgmCjigA0,376112
|
37
|
+
omniopt2-7101.data/data/bin/.omniopt_plot_cpu_ram_usage.py,sha256=DbOAmdrbcZtsMnHJgHfeRngjtv6zX5J0axyua_dYezc,3932
|
38
|
+
omniopt2-7101.data/data/bin/.omniopt_plot_general.py,sha256=ZERZJkvVOoJhi7SszmTF1Iln-_08_0Aki48u3LHUW-k,6809
|
39
|
+
omniopt2-7101.data/data/bin/.omniopt_plot_gpu_usage.py,sha256=ojxVicwSoiyl7f3c-6lLuT2EpyPcSJKEcbp75LgDY2k,5107
|
40
|
+
omniopt2-7101.data/data/bin/.omniopt_plot_kde.py,sha256=uRLWr72TDKvj3AqJ0O0AvkKZ1ok1O1QpXnbfQQdo0nA,6873
|
41
|
+
omniopt2-7101.data/data/bin/.omniopt_plot_scatter.py,sha256=-amqmLR_YLCbHImLPh6gwVFv8iiVnXME544XHsRVCuw,8422
|
42
|
+
omniopt2-7101.data/data/bin/.omniopt_plot_scatter_generation_method.py,sha256=rgKY_w1E516c9UucVaEvaKd8tCnoUq9xg-RrYSDzYEQ,4289
|
43
|
+
omniopt2-7101.data/data/bin/.omniopt_plot_scatter_hex.py,sha256=w1L5gL6Bc_QudoSJi2lxEVvF17Apjjb3l2T-lXGnsUg,10279
|
44
|
+
omniopt2-7101.data/data/bin/.omniopt_plot_time_and_exit_code.py,sha256=hC4RFDiJN_UImezFR6M5uVF-QKDqMDpq6R5DIg7dDDc,6463
|
45
|
+
omniopt2-7101.data/data/bin/.omniopt_plot_trial_index_result.py,sha256=5DmqZAQO_PFmzdap-TIhSMAshRXpOHQacnHAtjwnzN4,4629
|
46
|
+
omniopt2-7101.data/data/bin/.omniopt_plot_worker.py,sha256=VuluQq4W6KRR5RU08dxmDSFk5mbfDRkRJQFwwcLgAGw,4524
|
47
|
+
omniopt2-7101.data/data/bin/.random_generator.py,sha256=ezBBUXpez_QaGdpCglMcJ0KZPdQP0XdX5gnLzO1xhwU,2987
|
48
|
+
omniopt2-7101.data/data/bin/.shellscript_functions,sha256=C2VT3Eafz9OtCzjWOMXSeZCUGVMRm8y3eGDL43Ay0qM,14656
|
49
|
+
omniopt2-7101.data/data/bin/.tpe.py,sha256=Yd9s-ixCbWxTd3x0O1M1sok9QfM2mBEfsDwXhx50-Nc,6464
|
50
|
+
omniopt2-7101.data/data/bin/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
51
|
+
omniopt2-7101.data/data/bin/apt-dependencies.txt,sha256=X5tBB8ZLW9XaFtRh8B7C2pIkSoxNNawqioDr0QZAtuM,149
|
52
|
+
omniopt2-7101.data/data/bin/omniopt,sha256=Xe8NP6NRoX4j2IPGRTY80eYfo5fYM-fJfj9_aVP-aR8,47963
|
53
|
+
omniopt2-7101.data/data/bin/omniopt_docker,sha256=LWVUeyvmA5AKqAHiH9jBUkR5uZ6AHMnSy0eET7mK6E4,3602
|
54
|
+
omniopt2-7101.data/data/bin/omniopt_evaluate,sha256=9oBh0_ikCuIz_aJQZrN0j39NDiIDYoSvEFmSVIoFjJE,23842
|
55
|
+
omniopt2-7101.data/data/bin/omniopt_plot,sha256=Z8ZR10p-ZRSgMeVPO-wVCJ8lk-LQtntjZ9Bk9RifCIs,13360
|
56
|
+
omniopt2-7101.data/data/bin/omniopt_share,sha256=7g5I7YdoWcA6_GDwWwq0xPf23qiVc_VDrm9ySLH7SH0,14051
|
57
|
+
omniopt2-7101.data/data/bin/requirements.txt,sha256=QsRYgd43IXr8rN9m0CxufI9mEneBrDeKh4s8E_W2xwI,287
|
58
|
+
omniopt2-7101.data/data/bin/setup.py,sha256=g3uEqJHXhggXwgLYoxOjsXg9Z6IV1ubh-Og59AZ264Q,4648
|
59
|
+
omniopt2-7101.data/data/bin/test_requirements.txt,sha256=dnCbKmKalrVzNZ_-iQWf1xCxcnDsdGuhbDAr9XlGm-U,477
|
60
|
+
omniopt2-7101.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
61
|
+
omniopt2.egg-info/PKG-INFO,sha256=xvWADOO9gZkE1IEr3HHTaHXmgMxKBuMVr09i8yRMD64,5814
|
62
62
|
omniopt2.egg-info/SOURCES.txt,sha256=N-HtSaaqFRsd4XqAfeWVSp__3I-sw0d7cknJgyewRwQ,778
|
63
63
|
omniopt2.egg-info/dependency_links.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
64
64
|
omniopt2.egg-info/requires.txt,sha256=cZgCKMii2eXHaYbDhCwiLjxtFK6PW0aqFoJZ7xebsqM,764
|
65
65
|
omniopt2.egg-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
66
|
-
omniopt2-
|
67
|
-
omniopt2-
|
68
|
-
omniopt2-
|
69
|
-
omniopt2-
|
66
|
+
omniopt2-7101.dist-info/METADATA,sha256=xvWADOO9gZkE1IEr3HHTaHXmgMxKBuMVr09i8yRMD64,5814
|
67
|
+
omniopt2-7101.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
68
|
+
omniopt2-7101.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
69
|
+
omniopt2-7101.dist-info/RECORD,,
|
omniopt2.egg-info/PKG-INFO
CHANGED
pyproject.toml
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{omniopt2-7100.data → omniopt2-7101.data}/data/bin/.omniopt_plot_scatter_generation_method.py
RENAMED
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
|