omniopt2 8182__py3-none-any.whl → 8284__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.
Potentially problematic release.
This version of omniopt2 might be problematic. Click here for more details.
- .omniopt.py +133 -92
- .omniopt_plot_trial_index_result.py +1 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/.omniopt.py +133 -92
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/.omniopt_plot_trial_index_result.py +1 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/omniopt_docker +60 -60
- {omniopt2-8182.dist-info → omniopt2-8284.dist-info}/METADATA +1 -1
- {omniopt2-8182.dist-info → omniopt2-8284.dist-info}/RECORD +38 -38
- omniopt2.egg-info/PKG-INFO +1 -1
- omniopt_docker +60 -60
- pyproject.toml +1 -1
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/.colorfunctions.sh +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/.general.sh +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/.helpers.py +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/.omniopt_plot_cpu_ram_usage.py +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/.omniopt_plot_general.py +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/.omniopt_plot_gpu_usage.py +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/.omniopt_plot_kde.py +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/.omniopt_plot_scatter.py +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/.omniopt_plot_scatter_generation_method.py +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/.omniopt_plot_scatter_hex.py +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/.omniopt_plot_time_and_exit_code.py +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/.omniopt_plot_worker.py +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/.random_generator.py +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/.shellscript_functions +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/.tpe.py +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/LICENSE +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/apt-dependencies.txt +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/omniopt +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/omniopt_evaluate +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/omniopt_plot +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/omniopt_share +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/pylint.rc +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/requirements.txt +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/setup.py +0 -0
- {omniopt2-8182.data → omniopt2-8284.data}/data/bin/test_requirements.txt +0 -0
- {omniopt2-8182.dist-info → omniopt2-8284.dist-info}/WHEEL +0 -0
- {omniopt2-8182.dist-info → omniopt2-8284.dist-info}/licenses/LICENSE +0 -0
- {omniopt2-8182.dist-info → omniopt2-8284.dist-info}/top_level.txt +0 -0
omniopt2.egg-info/PKG-INFO
CHANGED
omniopt_docker
CHANGED
|
@@ -15,79 +15,79 @@ help_message() {
|
|
|
15
15
|
|
|
16
16
|
function _mkdir {
|
|
17
17
|
mkdir -p $* || {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
18
|
+
echo "mkdir -p $* failed. Exiting."
|
|
19
|
+
exit 12
|
|
21
20
|
}
|
|
21
|
+
}
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
23
|
+
while [[ "$#" -gt 0 ]]; do
|
|
24
|
+
case $1 in
|
|
25
|
+
--help)
|
|
26
|
+
help_message
|
|
27
|
+
exit 0
|
|
28
|
+
;;
|
|
29
|
+
esac
|
|
30
|
+
shift
|
|
31
|
+
done
|
|
32
|
+
|
|
33
|
+
UPDATED_PACKAGES=0
|
|
34
|
+
|
|
35
|
+
function apt_get_update () {
|
|
36
|
+
if command -v apt >/dev/null; then
|
|
37
|
+
if [[ $UPDATED_PACKAGES == 0 ]]; then
|
|
38
|
+
sudo apt update || {
|
|
39
|
+
echo "apt-get update failed. Are you online?"
|
|
40
|
+
exit 2
|
|
41
|
+
}
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
fi
|
|
45
|
-
else
|
|
46
|
-
echo "apt is not installed. You need to be on debian for auto-installing packages. Please install it manually."
|
|
47
|
-
exit 10
|
|
43
|
+
UPDATED_PACKAGES=1
|
|
48
44
|
fi
|
|
49
|
-
|
|
45
|
+
else
|
|
46
|
+
echo "apt is not installed. You need to be on debian for auto-installing packages. Please install it manually."
|
|
47
|
+
exit 10
|
|
48
|
+
fi
|
|
49
|
+
}
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
install_if_missing() {
|
|
52
|
+
if ! command -v "$1" &>/dev/null; then
|
|
53
|
+
apt_get_update
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
[[ "$2" == "docker" ]] && curl -fsSL "https://get.docker.com" | bash || sudo apt-get install -y "$1" || {
|
|
56
|
+
echo "Failed to install $1"
|
|
57
|
+
exit $3
|
|
58
|
+
}
|
|
59
|
+
fi
|
|
60
|
+
}
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
install_if_missing docker docker 2
|
|
63
|
+
install_if_missing docker-compose "" 2
|
|
64
|
+
install_if_missing wget "" 2
|
|
65
|
+
install_if_missing git "" 2
|
|
66
|
+
install_if_missing docker "" 2
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
if ! groups | grep -q '\bdocker\b'; then
|
|
69
|
+
install_if_missing sudo "" 2
|
|
70
|
+
fi
|
|
71
|
+
[[ -n $DISPLAY ]] && install_if_missing xhost "" 2
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
echo "=== Current git hash before auto-pulling ==="
|
|
74
|
+
git rev-parse HEAD
|
|
75
|
+
echo "=== Current git hash before auto-pulling ==="
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
git pull
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
_mkdir runs
|
|
80
|
+
_mkdir logs
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
git rev-parse HEAD > git_hash
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
84
|
+
if groups | grep -q '\bdocker\b'; then
|
|
85
|
+
DOCKER_COMPOSE_CMD="docker-compose"
|
|
86
|
+
DOCKER_CMD="docker"
|
|
87
|
+
else
|
|
88
|
+
DOCKER_COMPOSE_CMD="sudo docker-compose"
|
|
89
|
+
DOCKER_CMD="sudo docker"
|
|
90
|
+
fi
|
|
91
91
|
|
|
92
92
|
$DOCKER_COMPOSE_CMD build --build-arg GetMyUsername=$(whoami) || {
|
|
93
93
|
echo "Failed composing container"
|
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-8182.data → omniopt2-8284.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
|