omniopt2 6963__tar.gz → 6964__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.
- {omniopt2-6963 → omniopt2-6964}/.omniopt.py +8 -4
- {omniopt2-6963 → omniopt2-6964}/PKG-INFO +1 -1
- {omniopt2-6963 → omniopt2-6964}/omniopt2.egg-info/PKG-INFO +1 -1
- {omniopt2-6963 → omniopt2-6964}/pyproject.toml +1 -1
- {omniopt2-6963 → omniopt2-6964}/.colorfunctions.sh +0 -0
- {omniopt2-6963 → omniopt2-6964}/.dockerignore +0 -0
- {omniopt2-6963 → omniopt2-6964}/.general.sh +0 -0
- {omniopt2-6963 → omniopt2-6964}/.gitignore +0 -0
- {omniopt2-6963 → omniopt2-6964}/.helpers.py +0 -0
- {omniopt2-6963 → omniopt2-6964}/.omniopt_plot_cpu_ram_usage.py +0 -0
- {omniopt2-6963 → omniopt2-6964}/.omniopt_plot_general.py +0 -0
- {omniopt2-6963 → omniopt2-6964}/.omniopt_plot_gpu_usage.py +0 -0
- {omniopt2-6963 → omniopt2-6964}/.omniopt_plot_kde.py +0 -0
- {omniopt2-6963 → omniopt2-6964}/.omniopt_plot_scatter.py +0 -0
- {omniopt2-6963 → omniopt2-6964}/.omniopt_plot_scatter_generation_method.py +0 -0
- {omniopt2-6963 → omniopt2-6964}/.omniopt_plot_scatter_hex.py +0 -0
- {omniopt2-6963 → omniopt2-6964}/.omniopt_plot_time_and_exit_code.py +0 -0
- {omniopt2-6963 → omniopt2-6964}/.omniopt_plot_trial_index_result.py +0 -0
- {omniopt2-6963 → omniopt2-6964}/.omniopt_plot_worker.py +0 -0
- {omniopt2-6963 → omniopt2-6964}/.random_generator.py +0 -0
- {omniopt2-6963 → omniopt2-6964}/.shellscript_functions +0 -0
- {omniopt2-6963 → omniopt2-6964}/LICENSE +0 -0
- {omniopt2-6963 → omniopt2-6964}/MANIFEST.in +0 -0
- {omniopt2-6963 → omniopt2-6964}/README.md +0 -0
- {omniopt2-6963 → omniopt2-6964}/apt-dependencies.txt +0 -0
- {omniopt2-6963 → omniopt2-6964}/omniopt +0 -0
- {omniopt2-6963 → omniopt2-6964}/omniopt2.egg-info/SOURCES.txt +0 -0
- {omniopt2-6963 → omniopt2-6964}/omniopt2.egg-info/dependency_links.txt +0 -0
- {omniopt2-6963 → omniopt2-6964}/omniopt2.egg-info/requires.txt +0 -0
- {omniopt2-6963 → omniopt2-6964}/omniopt2.egg-info/top_level.txt +0 -0
- {omniopt2-6963 → omniopt2-6964}/omniopt_docker +0 -0
- {omniopt2-6963 → omniopt2-6964}/omniopt_evaluate +0 -0
- {omniopt2-6963 → omniopt2-6964}/omniopt_plot +0 -0
- {omniopt2-6963 → omniopt2-6964}/omniopt_share +0 -0
- {omniopt2-6963 → omniopt2-6964}/requirements.txt +0 -0
- {omniopt2-6963 → omniopt2-6964}/setup.cfg +0 -0
- {omniopt2-6963 → omniopt2-6964}/setup.py +0 -0
- {omniopt2-6963 → omniopt2-6964}/test_requirements.txt +0 -0
@@ -2413,11 +2413,13 @@ def switch_lower_and_upper_if_needed(name: Union[list, str], lower_bound: Union[
|
|
2413
2413
|
def round_lower_and_upper_if_type_is_int(value_type: str, lower_bound: Union[int, float], upper_bound: Union[int, float]) -> Tuple[Union[int, float], Union[int, float]]:
|
2414
2414
|
if value_type == "int":
|
2415
2415
|
if not helpers.looks_like_int(lower_bound):
|
2416
|
-
|
2416
|
+
if not args.tests:
|
2417
|
+
print_yellow(f"{value_type} can only contain integers. You chose {lower_bound}. Will be rounded down to {math.floor(lower_bound)}.")
|
2417
2418
|
lower_bound = math.floor(lower_bound)
|
2418
2419
|
|
2419
2420
|
if not helpers.looks_like_int(upper_bound):
|
2420
|
-
|
2421
|
+
if not args.tests:
|
2422
|
+
print_yellow(f"{value_type} can only contain integers. You chose {upper_bound}. Will be rounded up to {math.ceil(upper_bound)}.")
|
2421
2423
|
upper_bound = math.ceil(upper_bound)
|
2422
2424
|
|
2423
2425
|
return lower_bound, upper_bound
|
@@ -3175,11 +3177,13 @@ def calculate_signed_weighted_euclidean_distance(_args: Union[dict, List[float]]
|
|
3175
3177
|
weights = [float(w.strip()) for w in weights_string.split(",") if w.strip()]
|
3176
3178
|
|
3177
3179
|
if len(weights) > len(_args):
|
3178
|
-
|
3180
|
+
if not args.tests:
|
3181
|
+
print_yellow(f"calculate_signed_weighted_euclidean_distance: Warning: Trimming {len(weights) - len(_args)} extra weight(s): {weights[len(_args):]}")
|
3179
3182
|
weights = weights[:len(_args)]
|
3180
3183
|
|
3181
3184
|
if len(weights) < len(_args):
|
3182
|
-
|
3185
|
+
if not args.tests:
|
3186
|
+
print_yellow("calculate_signed_weighted_euclidean_distance: Warning: Not enough weights, filling with 1s")
|
3183
3187
|
weights.extend([1] * (len(_args) - len(weights)))
|
3184
3188
|
|
3185
3189
|
if len(_args) != len(weights):
|
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
|