omniopt2 8328__tar.gz → 8331__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.
- {omniopt2-8328 → omniopt2-8331}/.omniopt.py +31 -4
- {omniopt2-8328 → omniopt2-8331}/PKG-INFO +1 -1
- {omniopt2-8328 → omniopt2-8331}/omniopt2.egg-info/PKG-INFO +1 -1
- {omniopt2-8328 → omniopt2-8331}/pyproject.toml +1 -1
- {omniopt2-8328 → omniopt2-8331}/.colorfunctions.sh +0 -0
- {omniopt2-8328 → omniopt2-8331}/.dockerignore +0 -0
- {omniopt2-8328 → omniopt2-8331}/.general.sh +0 -0
- {omniopt2-8328 → omniopt2-8331}/.gitignore +0 -0
- {omniopt2-8328 → omniopt2-8331}/.helpers.py +0 -0
- {omniopt2-8328 → omniopt2-8331}/.omniopt_plot_cpu_ram_usage.py +0 -0
- {omniopt2-8328 → omniopt2-8331}/.omniopt_plot_general.py +0 -0
- {omniopt2-8328 → omniopt2-8331}/.omniopt_plot_gpu_usage.py +0 -0
- {omniopt2-8328 → omniopt2-8331}/.omniopt_plot_kde.py +0 -0
- {omniopt2-8328 → omniopt2-8331}/.omniopt_plot_scatter.py +0 -0
- {omniopt2-8328 → omniopt2-8331}/.omniopt_plot_scatter_generation_method.py +0 -0
- {omniopt2-8328 → omniopt2-8331}/.omniopt_plot_scatter_hex.py +0 -0
- {omniopt2-8328 → omniopt2-8331}/.omniopt_plot_time_and_exit_code.py +0 -0
- {omniopt2-8328 → omniopt2-8331}/.omniopt_plot_trial_index_result.py +0 -0
- {omniopt2-8328 → omniopt2-8331}/.omniopt_plot_worker.py +0 -0
- {omniopt2-8328 → omniopt2-8331}/.random_generator.py +0 -0
- {omniopt2-8328 → omniopt2-8331}/.shellscript_functions +0 -0
- {omniopt2-8328 → omniopt2-8331}/.tests/pylint.rc +0 -0
- {omniopt2-8328 → omniopt2-8331}/.tpe.py +0 -0
- {omniopt2-8328 → omniopt2-8331}/LICENSE +0 -0
- {omniopt2-8328 → omniopt2-8331}/MANIFEST.in +0 -0
- {omniopt2-8328 → omniopt2-8331}/README.md +0 -0
- {omniopt2-8328 → omniopt2-8331}/apt-dependencies.txt +0 -0
- {omniopt2-8328 → omniopt2-8331}/omniopt +0 -0
- {omniopt2-8328 → omniopt2-8331}/omniopt2.egg-info/SOURCES.txt +0 -0
- {omniopt2-8328 → omniopt2-8331}/omniopt2.egg-info/dependency_links.txt +0 -0
- {omniopt2-8328 → omniopt2-8331}/omniopt2.egg-info/requires.txt +0 -0
- {omniopt2-8328 → omniopt2-8331}/omniopt2.egg-info/top_level.txt +0 -0
- {omniopt2-8328 → omniopt2-8331}/omniopt_docker +0 -0
- {omniopt2-8328 → omniopt2-8331}/omniopt_evaluate +0 -0
- {omniopt2-8328 → omniopt2-8331}/omniopt_plot +0 -0
- {omniopt2-8328 → omniopt2-8331}/omniopt_share +0 -0
- {omniopt2-8328 → omniopt2-8331}/requirements.txt +0 -0
- {omniopt2-8328 → omniopt2-8331}/setup.cfg +0 -0
- {omniopt2-8328 → omniopt2-8331}/setup.py +0 -0
- {omniopt2-8328 → omniopt2-8331}/test_requirements.txt +0 -0
|
@@ -804,6 +804,7 @@ class ConfigLoader:
|
|
|
804
804
|
gridsearch: bool
|
|
805
805
|
auto_exclude_defective_hosts: bool
|
|
806
806
|
debug: bool
|
|
807
|
+
debug_stack_trace_regex: Optional[str]
|
|
807
808
|
num_restarts: int
|
|
808
809
|
raw_samples: int
|
|
809
810
|
show_generate_time_table: bool
|
|
@@ -991,6 +992,8 @@ class ConfigLoader:
|
|
|
991
992
|
debug.add_argument('--prettyprint', help='Shows stdout and stderr in a pretty printed format', action='store_true', default=False)
|
|
992
993
|
debug.add_argument('--runtime_debug', help='Logs which functions use most of the time', action='store_true', default=False)
|
|
993
994
|
debug.add_argument('--debug_stack_regex', help='Only print debug messages if call stack matches any regex', type=str, default='')
|
|
995
|
+
debug.add_argument('--debug_stack_trace_regex', help='Show compact call stack with arrows if any function in stack matches regex', type=str, default=None)
|
|
996
|
+
|
|
994
997
|
debug.add_argument('--show_func_name', help='Show func name before each execution and when it is done', action='store_true', default=False)
|
|
995
998
|
|
|
996
999
|
def load_config(self: Any, config_path: str, file_format: str) -> dict:
|
|
@@ -7270,11 +7273,9 @@ def finish_previous_jobs(new_msgs: List[str] = []) -> None:
|
|
|
7270
7273
|
|
|
7271
7274
|
print_debug(f"Finishing jobs took {finishing_jobs_runtime} second(s)")
|
|
7272
7275
|
|
|
7273
|
-
save_results_csv()
|
|
7274
|
-
|
|
7275
|
-
save_checkpoint()
|
|
7276
|
-
|
|
7277
7276
|
if this_jobs_finished > 0:
|
|
7277
|
+
save_results_csv()
|
|
7278
|
+
save_checkpoint()
|
|
7278
7279
|
progressbar_description([*new_msgs, f"finished {this_jobs_finished} {'job' if this_jobs_finished == 1 else 'jobs'}"])
|
|
7279
7280
|
|
|
7280
7281
|
JOBS_FINISHED += this_jobs_finished
|
|
@@ -11171,6 +11172,29 @@ def main_outside() -> None:
|
|
|
11171
11172
|
else:
|
|
11172
11173
|
end_program(True)
|
|
11173
11174
|
|
|
11175
|
+
def stack_trace_wrapper(func: Any, regex: Any = None) -> Any:
|
|
11176
|
+
pattern = re.compile(regex) if regex else None
|
|
11177
|
+
|
|
11178
|
+
def wrapped(*args, **kwargs):
|
|
11179
|
+
# nur prüfen ob diese Funktion den Trigger erfüllt
|
|
11180
|
+
if pattern and not pattern.search(func.__name__):
|
|
11181
|
+
return func(*args, **kwargs)
|
|
11182
|
+
|
|
11183
|
+
stack = inspect.stack()
|
|
11184
|
+
chain = []
|
|
11185
|
+
for frame in stack[1:]:
|
|
11186
|
+
fn = frame.function
|
|
11187
|
+
if fn in ("wrapped", "<module>"):
|
|
11188
|
+
continue
|
|
11189
|
+
chain.append(fn)
|
|
11190
|
+
|
|
11191
|
+
if chain:
|
|
11192
|
+
sys.stderr.write(" ⇒ ".join(reversed(chain)) + "\n")
|
|
11193
|
+
|
|
11194
|
+
return func(*args, **kwargs)
|
|
11195
|
+
|
|
11196
|
+
return wrapped
|
|
11197
|
+
|
|
11174
11198
|
def auto_wrap_namespace(namespace: Any) -> Any:
|
|
11175
11199
|
enable_beartype = any(os.getenv(v) for v in ("ENABLE_BEARTYPE", "CI"))
|
|
11176
11200
|
|
|
@@ -11200,6 +11224,9 @@ def auto_wrap_namespace(namespace: Any) -> Any:
|
|
|
11200
11224
|
if args.show_func_name:
|
|
11201
11225
|
wrapped = show_func_name_wrapper(wrapped)
|
|
11202
11226
|
|
|
11227
|
+
if args.debug_stack_trace_regex:
|
|
11228
|
+
wrapped = stack_trace_wrapper(wrapped, args.debug_stack_trace_regex)
|
|
11229
|
+
|
|
11203
11230
|
namespace[name] = wrapped
|
|
11204
11231
|
|
|
11205
11232
|
return namespace
|
|
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
|
|
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
|