omniopt2 7126__tar.gz → 7128__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.
Files changed (39) hide show
  1. {omniopt2-7126 → omniopt2-7128}/.colorfunctions.sh +29 -17
  2. {omniopt2-7126 → omniopt2-7128}/PKG-INFO +1 -1
  3. {omniopt2-7126 → omniopt2-7128}/omniopt +1 -32
  4. {omniopt2-7126 → omniopt2-7128}/omniopt2.egg-info/PKG-INFO +1 -1
  5. {omniopt2-7126 → omniopt2-7128}/pyproject.toml +1 -1
  6. {omniopt2-7126 → omniopt2-7128}/.dockerignore +0 -0
  7. {omniopt2-7126 → omniopt2-7128}/.general.sh +0 -0
  8. {omniopt2-7126 → omniopt2-7128}/.gitignore +0 -0
  9. {omniopt2-7126 → omniopt2-7128}/.helpers.py +0 -0
  10. {omniopt2-7126 → omniopt2-7128}/.omniopt.py +0 -0
  11. {omniopt2-7126 → omniopt2-7128}/.omniopt_plot_cpu_ram_usage.py +0 -0
  12. {omniopt2-7126 → omniopt2-7128}/.omniopt_plot_general.py +0 -0
  13. {omniopt2-7126 → omniopt2-7128}/.omniopt_plot_gpu_usage.py +0 -0
  14. {omniopt2-7126 → omniopt2-7128}/.omniopt_plot_kde.py +0 -0
  15. {omniopt2-7126 → omniopt2-7128}/.omniopt_plot_scatter.py +0 -0
  16. {omniopt2-7126 → omniopt2-7128}/.omniopt_plot_scatter_generation_method.py +0 -0
  17. {omniopt2-7126 → omniopt2-7128}/.omniopt_plot_scatter_hex.py +0 -0
  18. {omniopt2-7126 → omniopt2-7128}/.omniopt_plot_time_and_exit_code.py +0 -0
  19. {omniopt2-7126 → omniopt2-7128}/.omniopt_plot_trial_index_result.py +0 -0
  20. {omniopt2-7126 → omniopt2-7128}/.omniopt_plot_worker.py +0 -0
  21. {omniopt2-7126 → omniopt2-7128}/.random_generator.py +0 -0
  22. {omniopt2-7126 → omniopt2-7128}/.shellscript_functions +0 -0
  23. {omniopt2-7126 → omniopt2-7128}/.tpe.py +0 -0
  24. {omniopt2-7126 → omniopt2-7128}/LICENSE +0 -0
  25. {omniopt2-7126 → omniopt2-7128}/MANIFEST.in +0 -0
  26. {omniopt2-7126 → omniopt2-7128}/README.md +0 -0
  27. {omniopt2-7126 → omniopt2-7128}/apt-dependencies.txt +0 -0
  28. {omniopt2-7126 → omniopt2-7128}/omniopt2.egg-info/SOURCES.txt +0 -0
  29. {omniopt2-7126 → omniopt2-7128}/omniopt2.egg-info/dependency_links.txt +0 -0
  30. {omniopt2-7126 → omniopt2-7128}/omniopt2.egg-info/requires.txt +0 -0
  31. {omniopt2-7126 → omniopt2-7128}/omniopt2.egg-info/top_level.txt +0 -0
  32. {omniopt2-7126 → omniopt2-7128}/omniopt_docker +0 -0
  33. {omniopt2-7126 → omniopt2-7128}/omniopt_evaluate +0 -0
  34. {omniopt2-7126 → omniopt2-7128}/omniopt_plot +0 -0
  35. {omniopt2-7126 → omniopt2-7128}/omniopt_share +0 -0
  36. {omniopt2-7126 → omniopt2-7128}/requirements.txt +0 -0
  37. {omniopt2-7126 → omniopt2-7128}/setup.cfg +0 -0
  38. {omniopt2-7126 → omniopt2-7128}/setup.py +0 -0
  39. {omniopt2-7126 → omniopt2-7128}/test_requirements.txt +0 -0
@@ -27,34 +27,46 @@ function green {
27
27
  echo -ne "${Green}$1${Color_Off}"
28
28
  }
29
29
 
30
- function _tput {
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
- if ! tty 2>/dev/null >/dev/null; then
47
- echo ""
48
- set +e
49
- return 0
50
- fi
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 [[ "$CHAR" == "bel" ]] && [[ "$OO_MAIN_TESTS" -eq "1" ]]; then
53
- echo "Not print BEL-character for main-test-suite ($CHAR, $OO_MAIN_TESTS)"
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 "$CHAR"
66
+ red_text "tput not installed" >&2
56
67
  fi
57
- set +e
68
+
69
+ return 0
58
70
  }
59
71
 
60
72
  function green_reset_line {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omniopt2
3
- Version: 7126
3
+ Version: 7128
4
4
  Summary: Automatic highly parallelized hyperparameter optimizer based on Ax/Botorch
5
5
  Home-page: https://scads.ai/transfer-2/verfuegbare-software-dienste-en/omniopt/
6
6
  Author: Norman Koch
@@ -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
@@ -1784,7 +1753,7 @@ EOF
1784
1753
  _tput el # Delete line from start to finish
1785
1754
 
1786
1755
  echo -ne "$print_line"
1787
- sleep 0.2
1756
+ sleep 0.05
1788
1757
  done
1789
1758
 
1790
1759
  _tput cnorm # Enable cursor
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omniopt2
3
- Version: 7126
3
+ Version: 7128
4
4
  Summary: Automatic highly parallelized hyperparameter optimizer based on Ax/Botorch
5
5
  Home-page: https://scads.ai/transfer-2/verfuegbare-software-dienste-en/omniopt/
6
6
  Author: Norman Koch
@@ -5,7 +5,7 @@ authors = [
5
5
  {email = "norman.koch@tu-dresden.de"},
6
6
  {name = "Norman Koch"}
7
7
  ]
8
- version = "7126"
8
+ version = "7128"
9
9
 
10
10
  readme = "README.md"
11
11
  dynamic = ["dependencies"]
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