omniopt2 7126__tar.gz → 7127__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-7126 → omniopt2-7127}/.colorfunctions.sh +29 -17
- {omniopt2-7126 → omniopt2-7127}/PKG-INFO +1 -1
- {omniopt2-7126 → omniopt2-7127}/omniopt +0 -31
- {omniopt2-7126 → omniopt2-7127}/omniopt2.egg-info/PKG-INFO +1 -1
- {omniopt2-7126 → omniopt2-7127}/pyproject.toml +1 -1
- {omniopt2-7126 → omniopt2-7127}/.dockerignore +0 -0
- {omniopt2-7126 → omniopt2-7127}/.general.sh +0 -0
- {omniopt2-7126 → omniopt2-7127}/.gitignore +0 -0
- {omniopt2-7126 → omniopt2-7127}/.helpers.py +0 -0
- {omniopt2-7126 → omniopt2-7127}/.omniopt.py +0 -0
- {omniopt2-7126 → omniopt2-7127}/.omniopt_plot_cpu_ram_usage.py +0 -0
- {omniopt2-7126 → omniopt2-7127}/.omniopt_plot_general.py +0 -0
- {omniopt2-7126 → omniopt2-7127}/.omniopt_plot_gpu_usage.py +0 -0
- {omniopt2-7126 → omniopt2-7127}/.omniopt_plot_kde.py +0 -0
- {omniopt2-7126 → omniopt2-7127}/.omniopt_plot_scatter.py +0 -0
- {omniopt2-7126 → omniopt2-7127}/.omniopt_plot_scatter_generation_method.py +0 -0
- {omniopt2-7126 → omniopt2-7127}/.omniopt_plot_scatter_hex.py +0 -0
- {omniopt2-7126 → omniopt2-7127}/.omniopt_plot_time_and_exit_code.py +0 -0
- {omniopt2-7126 → omniopt2-7127}/.omniopt_plot_trial_index_result.py +0 -0
- {omniopt2-7126 → omniopt2-7127}/.omniopt_plot_worker.py +0 -0
- {omniopt2-7126 → omniopt2-7127}/.random_generator.py +0 -0
- {omniopt2-7126 → omniopt2-7127}/.shellscript_functions +0 -0
- {omniopt2-7126 → omniopt2-7127}/.tpe.py +0 -0
- {omniopt2-7126 → omniopt2-7127}/LICENSE +0 -0
- {omniopt2-7126 → omniopt2-7127}/MANIFEST.in +0 -0
- {omniopt2-7126 → omniopt2-7127}/README.md +0 -0
- {omniopt2-7126 → omniopt2-7127}/apt-dependencies.txt +0 -0
- {omniopt2-7126 → omniopt2-7127}/omniopt2.egg-info/SOURCES.txt +0 -0
- {omniopt2-7126 → omniopt2-7127}/omniopt2.egg-info/dependency_links.txt +0 -0
- {omniopt2-7126 → omniopt2-7127}/omniopt2.egg-info/requires.txt +0 -0
- {omniopt2-7126 → omniopt2-7127}/omniopt2.egg-info/top_level.txt +0 -0
- {omniopt2-7126 → omniopt2-7127}/omniopt_docker +0 -0
- {omniopt2-7126 → omniopt2-7127}/omniopt_evaluate +0 -0
- {omniopt2-7126 → omniopt2-7127}/omniopt_plot +0 -0
- {omniopt2-7126 → omniopt2-7127}/omniopt_share +0 -0
- {omniopt2-7126 → omniopt2-7127}/requirements.txt +0 -0
- {omniopt2-7126 → omniopt2-7127}/setup.cfg +0 -0
- {omniopt2-7126 → omniopt2-7127}/setup.py +0 -0
- {omniopt2-7126 → omniopt2-7127}/test_requirements.txt +0 -0
@@ -27,34 +27,46 @@ function green {
|
|
27
27
|
echo -ne "${Green}$1${Color_Off}"
|
28
28
|
}
|
29
29
|
|
30
|
-
|
30
|
+
_tput() {
|
31
31
|
set +e
|
32
32
|
CHAR=$1
|
33
33
|
|
34
|
-
if ! command -v tput 2>/dev/null >/dev/null; then
|
35
|
-
red_text "tput not installed" >&2
|
36
|
-
set +e
|
37
|
-
return 0
|
38
|
-
fi
|
39
|
-
|
40
34
|
if [[ -z $CHAR ]]; then
|
41
35
|
red_text "No character given" >&2
|
42
|
-
set +e
|
43
36
|
return 0
|
44
37
|
fi
|
45
38
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
39
|
+
case "$CHAR" in
|
40
|
+
cr)
|
41
|
+
echo -ne '\r'
|
42
|
+
return 0
|
43
|
+
;;
|
44
|
+
el)
|
45
|
+
echo -ne '\033[K'
|
46
|
+
return 0
|
47
|
+
;;
|
48
|
+
bel)
|
49
|
+
if [[ "$OO_MAIN_TESTS" -eq "1" ]]; then
|
50
|
+
echo "Not print BEL-character for main-test-suite ($CHAR, $OO_MAIN_TESTS)"
|
51
|
+
return 0
|
52
|
+
else
|
53
|
+
echo -ne '\a'
|
54
|
+
return 0
|
55
|
+
fi
|
56
|
+
;;
|
57
|
+
esac
|
51
58
|
|
52
|
-
if
|
53
|
-
|
59
|
+
if command -v tput >/dev/null 2>&1; then
|
60
|
+
if tty >/dev/null 2>&1; then
|
61
|
+
tput "$CHAR"
|
62
|
+
else
|
63
|
+
red_text "Skipping tput $CHAR: no tty and no fallback" >&2
|
64
|
+
fi
|
54
65
|
else
|
55
|
-
tput "
|
66
|
+
red_text "tput not installed" >&2
|
56
67
|
fi
|
57
|
-
|
68
|
+
|
69
|
+
return 0
|
58
70
|
}
|
59
71
|
|
60
72
|
function green_reset_line {
|
@@ -366,37 +366,6 @@
|
|
366
366
|
fi
|
367
367
|
done
|
368
368
|
|
369
|
-
function _tput {
|
370
|
-
set +e
|
371
|
-
CHAR=$1
|
372
|
-
|
373
|
-
if ! command -v tput 2>/dev/null >/dev/null; then
|
374
|
-
red_text "tput not installed\n" >&2
|
375
|
-
set +e
|
376
|
-
return 0
|
377
|
-
fi
|
378
|
-
|
379
|
-
if [[ -z $CHAR ]]; then
|
380
|
-
red_text "No character given\n" >&2
|
381
|
-
set +e
|
382
|
-
return 0
|
383
|
-
fi
|
384
|
-
|
385
|
-
if ! tty 2>/dev/null >/dev/null; then
|
386
|
-
echo ""
|
387
|
-
set +e
|
388
|
-
return 0
|
389
|
-
fi
|
390
|
-
|
391
|
-
if [[ "$CHAR" == "bel" ]] && [[ "$OO_MAIN_TESTS" -eq "1" ]]; then
|
392
|
-
echo "Not print BEL-character for main-test-suite ($CHAR, $OO_MAIN_TESTS)"
|
393
|
-
else
|
394
|
-
tput "$CHAR"
|
395
|
-
fi
|
396
|
-
|
397
|
-
set +e
|
398
|
-
}
|
399
|
-
|
400
369
|
int_re='^[+-]?[0-9]+$'
|
401
370
|
|
402
371
|
if [[ -n $PRINT_SEPERATOR ]]; then # for tests, so that things are properly visually seperated
|
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
|