omniopt2 8346__tar.gz → 8359__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-8346 → omniopt2-8359}/PKG-INFO +1 -1
- {omniopt2-8346 → omniopt2-8359}/omniopt +12 -11
- {omniopt2-8346 → omniopt2-8359}/omniopt2.egg-info/PKG-INFO +1 -1
- {omniopt2-8346 → omniopt2-8359}/pyproject.toml +1 -1
- {omniopt2-8346 → omniopt2-8359}/.colorfunctions.sh +0 -0
- {omniopt2-8346 → omniopt2-8359}/.dockerignore +0 -0
- {omniopt2-8346 → omniopt2-8359}/.general.sh +0 -0
- {omniopt2-8346 → omniopt2-8359}/.gitignore +0 -0
- {omniopt2-8346 → omniopt2-8359}/.helpers.py +0 -0
- {omniopt2-8346 → omniopt2-8359}/.omniopt.py +0 -0
- {omniopt2-8346 → omniopt2-8359}/.omniopt_plot_cpu_ram_usage.py +0 -0
- {omniopt2-8346 → omniopt2-8359}/.omniopt_plot_general.py +0 -0
- {omniopt2-8346 → omniopt2-8359}/.omniopt_plot_gpu_usage.py +0 -0
- {omniopt2-8346 → omniopt2-8359}/.omniopt_plot_kde.py +0 -0
- {omniopt2-8346 → omniopt2-8359}/.omniopt_plot_scatter.py +0 -0
- {omniopt2-8346 → omniopt2-8359}/.omniopt_plot_scatter_generation_method.py +0 -0
- {omniopt2-8346 → omniopt2-8359}/.omniopt_plot_scatter_hex.py +0 -0
- {omniopt2-8346 → omniopt2-8359}/.omniopt_plot_time_and_exit_code.py +0 -0
- {omniopt2-8346 → omniopt2-8359}/.omniopt_plot_trial_index_result.py +0 -0
- {omniopt2-8346 → omniopt2-8359}/.omniopt_plot_worker.py +0 -0
- {omniopt2-8346 → omniopt2-8359}/.random_generator.py +0 -0
- {omniopt2-8346 → omniopt2-8359}/.shellscript_functions +0 -0
- {omniopt2-8346 → omniopt2-8359}/.tests/pylint.rc +0 -0
- {omniopt2-8346 → omniopt2-8359}/.tpe.py +0 -0
- {omniopt2-8346 → omniopt2-8359}/LICENSE +0 -0
- {omniopt2-8346 → omniopt2-8359}/MANIFEST.in +0 -0
- {omniopt2-8346 → omniopt2-8359}/README.md +0 -0
- {omniopt2-8346 → omniopt2-8359}/apt-dependencies.txt +0 -0
- {omniopt2-8346 → omniopt2-8359}/omniopt2.egg-info/SOURCES.txt +0 -0
- {omniopt2-8346 → omniopt2-8359}/omniopt2.egg-info/dependency_links.txt +0 -0
- {omniopt2-8346 → omniopt2-8359}/omniopt2.egg-info/requires.txt +0 -0
- {omniopt2-8346 → omniopt2-8359}/omniopt2.egg-info/top_level.txt +0 -0
- {omniopt2-8346 → omniopt2-8359}/omniopt_docker +0 -0
- {omniopt2-8346 → omniopt2-8359}/omniopt_evaluate +0 -0
- {omniopt2-8346 → omniopt2-8359}/omniopt_plot +0 -0
- {omniopt2-8346 → omniopt2-8359}/omniopt_share +0 -0
- {omniopt2-8346 → omniopt2-8359}/requirements.txt +0 -0
- {omniopt2-8346 → omniopt2-8359}/setup.cfg +0 -0
- {omniopt2-8346 → omniopt2-8359}/setup.py +0 -0
- {omniopt2-8346 → omniopt2-8359}/test_requirements.txt +0 -0
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
set -e
|
|
53
53
|
fi
|
|
54
54
|
|
|
55
|
-
source $SCRIPT_DIR/.colorfunctions.sh
|
|
55
|
+
source "$SCRIPT_DIR/.colorfunctions.sh"
|
|
56
56
|
|
|
57
57
|
cancelled_manually=0
|
|
58
58
|
|
|
@@ -390,7 +390,7 @@
|
|
|
390
390
|
if [[ -z $run_folder ]]; then
|
|
391
391
|
true
|
|
392
392
|
else
|
|
393
|
-
bash $SCRIPT_DIR/omniopt_share --username="$USER" "$run_folder" 2>/dev/null >/dev/null
|
|
393
|
+
bash "$SCRIPT_DIR/omniopt_share" --username="$USER" "$run_folder" 2>/dev/null >/dev/null
|
|
394
394
|
fi
|
|
395
395
|
set -e
|
|
396
396
|
else
|
|
@@ -404,7 +404,7 @@
|
|
|
404
404
|
}
|
|
405
405
|
|
|
406
406
|
function get_anon_user_id {
|
|
407
|
-
user_groups=$(echo "$(echo $USER | sha512sum)|groups=$(groups | tr ' ' '\n' | sort | sha512sum)")
|
|
407
|
+
user_groups=$(echo "$(echo "$USER" | sha512sum)|groups=$(groups | tr ' ' '\n' | sort | sha512sum)")
|
|
408
408
|
fixed_iv=$(echo -n "$user_groups" | sha512sum | cut -c1-32)
|
|
409
409
|
encrypted=$(echo -n "$user_groups" | openssl enc -aes-256-cbc -a -pass pass:"$(echo "$(groups | tr ' ' '\n' | sort | sha512sum)-$USER" | sha512sum | rev | sha512sum)" -iv "$fixed_iv" -nosalt -pbkdf2)
|
|
410
410
|
echo "$encrypted" | sha512sum | rev | sha512sum | rev | sha512sum | sha512sum | sed -e 's#[[:space:]].*##' | cut -c1-32
|
|
@@ -601,7 +601,7 @@
|
|
|
601
601
|
|
|
602
602
|
echo ""
|
|
603
603
|
caller
|
|
604
|
-
echo "Runtime (calltracer): $(displaytime $SECONDS), PID: $$"
|
|
604
|
+
echo "Runtime (calltracer): $(displaytime "$SECONDS"), PID: $$"
|
|
605
605
|
else
|
|
606
606
|
echo ""
|
|
607
607
|
fi
|
|
@@ -620,7 +620,7 @@
|
|
|
620
620
|
if [[ $python_pid =~ $re ]] ; then
|
|
621
621
|
if [[ -z "$already_sent_signal" ]]; then
|
|
622
622
|
if command -v ps 2>/dev/null >/dev/null; then
|
|
623
|
-
if ps auxf | grep $python_pid 2>/dev/null >/dev/null; then
|
|
623
|
+
if ps auxf | grep "$python_pid" 2>/dev/null >/dev/null; then
|
|
624
624
|
already_sent_signal=1
|
|
625
625
|
echo -e "\nSending USR1 to $python_pid (python). Reason: $REASON"
|
|
626
626
|
kill -USR1 "$python_pid"
|
|
@@ -633,7 +633,7 @@
|
|
|
633
633
|
fi
|
|
634
634
|
|
|
635
635
|
if [[ $kill_python_if_started_already_shown -eq 0 ]]; then
|
|
636
|
-
echo "Runtime (kill_python_if_started): $(displaytime $SECONDS), PID: $$"
|
|
636
|
+
echo "Runtime (kill_python_if_started): $(displaytime "$SECONDS"), PID: $$"
|
|
637
637
|
kill_python_if_started_already_shown=1
|
|
638
638
|
fi
|
|
639
639
|
|
|
@@ -678,7 +678,7 @@
|
|
|
678
678
|
|
|
679
679
|
printf "%02d:%02d:%02d\n" "$hours" "$minutes" "$seconds"
|
|
680
680
|
elif [[ $var =~ $time_re ]]; then
|
|
681
|
-
echo $var
|
|
681
|
+
echo "$var"
|
|
682
682
|
else
|
|
683
683
|
red_text "ERROR: $var is not a valid input. Must be a number of minutes (digits) or HH:MM:SS\n"
|
|
684
684
|
|
|
@@ -1183,7 +1183,7 @@ EOF
|
|
|
1183
1183
|
if [[ "$commits_since_tag" -gt 0 ]]; then
|
|
1184
1184
|
if [[ "$checkout_to_latest_tested_version" -eq "1" ]]; then
|
|
1185
1185
|
yellow_text "--checkout_to_latest_tested_version enabled. Checking out to $tag_commit_hash..."
|
|
1186
|
-
git -C "$SCRIPT_DIR" checkout $tag_commit_hash >/dev/null 2>/dev/null || {
|
|
1186
|
+
git -C "$SCRIPT_DIR" checkout "$tag_commit_hash" >/dev/null 2>/dev/null || {
|
|
1187
1187
|
red_text "\nFailed to checkout to latest version. Try not using --checkout_to_latest_tested_version.\n"
|
|
1188
1188
|
myexit 211
|
|
1189
1189
|
}
|
|
@@ -1627,7 +1627,7 @@ EOF
|
|
|
1627
1627
|
else
|
|
1628
1628
|
echo "Starting OmniOpt with Py-Spy"
|
|
1629
1629
|
pip install py-spy
|
|
1630
|
-
stdbuf -e 0 -o 0 py-spy record --rate 10 --subprocesses --native --output $RUN_UUID.svg python3 -- "$SCRIPT_DIR/.omniopt.py" $args_string
|
|
1630
|
+
stdbuf -e 0 -o 0 py-spy record --rate 10 --subprocesses --native --output "$RUN_UUID.svg" python3 -- "$SCRIPT_DIR/.omniopt.py" $args_string
|
|
1631
1631
|
EXIT_CODE=$?
|
|
1632
1632
|
fi
|
|
1633
1633
|
else
|
|
@@ -1888,7 +1888,8 @@ EOF
|
|
|
1888
1888
|
|
|
1889
1889
|
|
|
1890
1890
|
exit_code_lines=$(grep -i "exit-code:*" "$LOG_PATH" 2>/dev/null)
|
|
1891
|
-
|
|
1891
|
+
exit_code_lines_lines=$?
|
|
1892
|
+
if [ $exit_code_lines_lines -ne 0 ] || [ -z "$exit_code_lines" ]; then
|
|
1892
1893
|
echo "WARN: grep failed or no exit-code line found."
|
|
1893
1894
|
exit_code_lines=""
|
|
1894
1895
|
fi
|
|
@@ -1982,7 +1983,7 @@ EOF
|
|
|
1982
1983
|
fi
|
|
1983
1984
|
|
|
1984
1985
|
if [[ $show_runtime -eq 0 ]]; then
|
|
1985
|
-
echo "Runtime (end): $(displaytime $SECONDS), PID: $$"
|
|
1986
|
+
echo "Runtime (end): $(displaytime "$SECONDS"), PID: $$"
|
|
1986
1987
|
fi
|
|
1987
1988
|
|
|
1988
1989
|
if [[ -n $RUN_WITH_COVERAGE ]]; then
|
|
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
|