omniopt2 7010__tar.gz → 7014__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-7010 → omniopt2-7014}/.helpers.py +5 -1
- {omniopt2-7010 → omniopt2-7014}/.omniopt_plot_cpu_ram_usage.py +8 -1
- {omniopt2-7010 → omniopt2-7014}/.omniopt_plot_general.py +8 -1
- {omniopt2-7010 → omniopt2-7014}/.omniopt_plot_gpu_usage.py +14 -8
- {omniopt2-7010 → omniopt2-7014}/.omniopt_plot_kde.py +8 -1
- {omniopt2-7010 → omniopt2-7014}/.omniopt_plot_scatter_generation_method.py +8 -1
- {omniopt2-7010 → omniopt2-7014}/.omniopt_plot_time_and_exit_code.py +8 -3
- {omniopt2-7010 → omniopt2-7014}/.omniopt_plot_trial_index_result.py +8 -1
- {omniopt2-7010 → omniopt2-7014}/.omniopt_plot_worker.py +17 -13
- {omniopt2-7010/omniopt2.egg-info → omniopt2-7014}/PKG-INFO +1 -1
- {omniopt2-7010 → omniopt2-7014/omniopt2.egg-info}/PKG-INFO +1 -1
- {omniopt2-7010 → omniopt2-7014}/pyproject.toml +1 -1
- {omniopt2-7010 → omniopt2-7014}/.colorfunctions.sh +0 -0
- {omniopt2-7010 → omniopt2-7014}/.dockerignore +0 -0
- {omniopt2-7010 → omniopt2-7014}/.general.sh +0 -0
- {omniopt2-7010 → omniopt2-7014}/.gitignore +0 -0
- {omniopt2-7010 → omniopt2-7014}/.omniopt.py +0 -0
- {omniopt2-7010 → omniopt2-7014}/.omniopt_plot_scatter.py +0 -0
- {omniopt2-7010 → omniopt2-7014}/.omniopt_plot_scatter_hex.py +0 -0
- {omniopt2-7010 → omniopt2-7014}/.random_generator.py +0 -0
- {omniopt2-7010 → omniopt2-7014}/.shellscript_functions +0 -0
- {omniopt2-7010 → omniopt2-7014}/LICENSE +0 -0
- {omniopt2-7010 → omniopt2-7014}/MANIFEST.in +0 -0
- {omniopt2-7010 → omniopt2-7014}/README.md +0 -0
- {omniopt2-7010 → omniopt2-7014}/apt-dependencies.txt +0 -0
- {omniopt2-7010 → omniopt2-7014}/omniopt +0 -0
- {omniopt2-7010 → omniopt2-7014}/omniopt2.egg-info/SOURCES.txt +0 -0
- {omniopt2-7010 → omniopt2-7014}/omniopt2.egg-info/dependency_links.txt +0 -0
- {omniopt2-7010 → omniopt2-7014}/omniopt2.egg-info/requires.txt +0 -0
- {omniopt2-7010 → omniopt2-7014}/omniopt2.egg-info/top_level.txt +0 -0
- {omniopt2-7010 → omniopt2-7014}/omniopt_docker +0 -0
- {omniopt2-7010 → omniopt2-7014}/omniopt_evaluate +0 -0
- {omniopt2-7010 → omniopt2-7014}/omniopt_plot +0 -0
- {omniopt2-7010 → omniopt2-7014}/omniopt_share +0 -0
- {omniopt2-7010 → omniopt2-7014}/requirements.txt +0 -0
- {omniopt2-7010 → omniopt2-7014}/setup.cfg +0 -0
- {omniopt2-7010 → omniopt2-7014}/setup.py +0 -0
- {omniopt2-7010 → omniopt2-7014}/test_requirements.txt +0 -0
@@ -842,7 +842,11 @@ def can_be_plotted(path: str) -> bool:
|
|
842
842
|
|
843
843
|
return len(lines) == 1
|
844
844
|
|
845
|
-
def die_if_cannot_be_plotted(run_dir: str) -> None:
|
845
|
+
def die_if_cannot_be_plotted(run_dir: Optional[str]) -> None:
|
846
|
+
if run_dir is None:
|
847
|
+
log_error("run_dir was empty")
|
848
|
+
sys.exit(2)
|
849
|
+
|
846
850
|
if not can_be_plotted(run_dir):
|
847
851
|
log_error(f"{run_dir} contains multiple RESULTS and thus can only be plotted by parallel plot")
|
848
852
|
sys.exit(2)
|
@@ -39,6 +39,7 @@ def load_helpers(script_dir: str) -> None:
|
|
39
39
|
parser = argparse.ArgumentParser(description='Plotting tool for analyzing CPU and RAM usage data.')
|
40
40
|
parser.add_argument('--save_to_file', nargs='?', const='plot', type=str, help='Path to save the plot(s)')
|
41
41
|
parser.add_argument('--run_dir', type=str, help='Path to a CSV file', required=True)
|
42
|
+
parser.add_argument('--darkmode', help='Enable darktheme', action='store_true', default=False)
|
42
43
|
parser.add_argument('--no_plt_show', help='Disable showing the plot', action='store_true', default=False)
|
43
44
|
args = parser.parse_args()
|
44
45
|
|
@@ -113,4 +114,10 @@ def main() -> None:
|
|
113
114
|
update_graph(csv_path)
|
114
115
|
|
115
116
|
if __name__ == "__main__":
|
116
|
-
|
117
|
+
theme = "fast"
|
118
|
+
|
119
|
+
if args is not None and args.darkmode:
|
120
|
+
theme = "dark_background"
|
121
|
+
|
122
|
+
with plt.style.context(theme):
|
123
|
+
main()
|
@@ -41,6 +41,7 @@ def parse_arguments() -> Any:
|
|
41
41
|
parser.add_argument('--max', type=float, help='Maximum value for result filtering')
|
42
42
|
parser.add_argument('--save_to_file', nargs='?', const='plot', type=str, help='Path to save the plot(s)')
|
43
43
|
parser.add_argument('--run_dir', type=str, help='Path to a CSV file', required=True)
|
44
|
+
parser.add_argument('--darkmode', help='Enable darktheme', action='store_true', default=False)
|
44
45
|
parser.add_argument('--bins', type=int, help='Number of bins for distribution of results', default=10)
|
45
46
|
parser.add_argument('--alpha', type=float, help='Transparency of plot bars', default=0.5)
|
46
47
|
parser.add_argument('--no_plt_show', help='Disable showing the plot', action='store_true', default=False)
|
@@ -138,4 +139,10 @@ if __name__ == "__main__":
|
|
138
139
|
logging.error("Specified --run_dir does not exist")
|
139
140
|
sys.exit(1)
|
140
141
|
|
141
|
-
|
142
|
+
theme = "fast"
|
143
|
+
|
144
|
+
if args is not None and args.darkmode:
|
145
|
+
theme = "dark_background"
|
146
|
+
|
147
|
+
with plt.style.context(theme):
|
148
|
+
update_graph()
|
@@ -20,7 +20,7 @@ from beartype import beartype
|
|
20
20
|
|
21
21
|
parser = argparse.ArgumentParser(description='Process some integers.')
|
22
22
|
parser.add_argument('--run_dir', type=str, help='Directory where to search for CSV files')
|
23
|
-
|
23
|
+
parser.add_argument('--darkmode', help='Enable darktheme', action='store_true', default=False)
|
24
24
|
parser.add_argument('--no_legend', help='Disables legend (useless here)', action='store_true', default=False)
|
25
25
|
parser.add_argument('--save_to_file', nargs='?', const='plot', type=str, help='Path to save the plot(s)')
|
26
26
|
parser.add_argument('--no_plt_show', help='Disable showing the plot', action='store_true', default=False)
|
@@ -140,10 +140,16 @@ def save_to_file_or_show_canvas() -> None:
|
|
140
140
|
plt.show()
|
141
141
|
|
142
142
|
if __name__ == "__main__":
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
143
|
+
theme = "fast"
|
144
|
+
|
145
|
+
if args is not None and args.darkmode:
|
146
|
+
theme = "dark_background"
|
147
|
+
|
148
|
+
with plt.style.context(theme):
|
149
|
+
args = parser.parse_args()
|
150
|
+
try:
|
151
|
+
plot_gpu_usage(args.run_dir)
|
152
|
+
except UnicodeDecodeError:
|
153
|
+
if not os.environ.get("PLOT_TESTS"):
|
154
|
+
print(f"{args.run_dir}/results.csv seems to be invalid utf8.")
|
155
|
+
sys.exit(7)
|
@@ -42,6 +42,7 @@ parser = argparse.ArgumentParser(description='Plotting tool for analyzing trial
|
|
42
42
|
parser.add_argument('--run_dir', type=str, help='Path to a run dir', required=True)
|
43
43
|
parser.add_argument('--bins', type=int, help='Number of bins for distribution of results', default=10)
|
44
44
|
parser.add_argument('--alpha', type=float, help='Transparency of plot bars (between 0 and 1)', default=0.5)
|
45
|
+
parser.add_argument('--darkmode', help='Enable darktheme', action='store_true', default=False)
|
45
46
|
parser.add_argument('--no_legend', help='Disables legend', action='store_true', default=False)
|
46
47
|
parser.add_argument('--save_to_file', type=str, help='Save the plot to the specified file', default=None)
|
47
48
|
parser.add_argument('--no_plt_show', help='Disable showing the plot', action='store_true', default=False)
|
@@ -190,4 +191,10 @@ if __name__ == "__main__":
|
|
190
191
|
logging.error("Specified --run_dir does not exist")
|
191
192
|
sys.exit(1)
|
192
193
|
|
193
|
-
|
194
|
+
theme = "fast"
|
195
|
+
|
196
|
+
if args is not None and args.darkmode:
|
197
|
+
theme = "dark_background"
|
198
|
+
|
199
|
+
with plt.style.context(theme):
|
200
|
+
update_graph()
|
@@ -34,6 +34,7 @@ else:
|
|
34
34
|
parser = argparse.ArgumentParser(description='Plotting tool for analyzing trial data.')
|
35
35
|
parser.add_argument('--min', type=float, help='Minimum value for result filtering')
|
36
36
|
parser.add_argument('--max', type=float, help='Maximum value for result filtering')
|
37
|
+
parser.add_argument('--darkmode', help='Enable darktheme', action='store_true', default=False)
|
37
38
|
parser.add_argument('--save_to_file', nargs='?', const='plot', type=str, help='Path to save the plot(s)')
|
38
39
|
parser.add_argument('--run_dir', type=str, help='Path to a CSV file', required=True)
|
39
40
|
parser.add_argument('--no_plt_show', help='Disable showing the plot', action='store_true', default=False)
|
@@ -115,4 +116,10 @@ if __name__ == "__main__":
|
|
115
116
|
|
116
117
|
helpers.die_if_cannot_be_plotted(args.run_dir)
|
117
118
|
|
118
|
-
|
119
|
+
theme = "fast"
|
120
|
+
|
121
|
+
if args is not None and args.darkmode:
|
122
|
+
theme = "dark_background"
|
123
|
+
|
124
|
+
with plt.style.context(theme):
|
125
|
+
update_graph()
|
@@ -38,9 +38,8 @@ else:
|
|
38
38
|
|
39
39
|
parser = argparse.ArgumentParser(description='Plot worker usage from CSV file')
|
40
40
|
parser.add_argument('--run_dir', type=str, help='Directory containing worker usage CSV file')
|
41
|
-
|
42
41
|
parser.add_argument('--save_to_file', type=str, help='Save the plot to the specified file', default=None)
|
43
|
-
|
42
|
+
parser.add_argument('--darkmode', help='Enable darktheme', action='store_true', default=False)
|
44
43
|
parser.add_argument('--bins', type=int, help='Number of bins for distribution of results (useless here)', default=10)
|
45
44
|
parser.add_argument('--no_plt_show', help='Disable showing the plot', action='store_true', default=False)
|
46
45
|
args = parser.parse_args()
|
@@ -158,4 +157,10 @@ def main() -> None:
|
|
158
157
|
print("df was empty")
|
159
158
|
|
160
159
|
if __name__ == "__main__":
|
161
|
-
|
160
|
+
theme = "fast"
|
161
|
+
|
162
|
+
if args is not None and args.darkmode:
|
163
|
+
theme = "dark_background"
|
164
|
+
|
165
|
+
with plt.style.context(theme):
|
166
|
+
main()
|
@@ -41,6 +41,7 @@ parser = argparse.ArgumentParser(description='Plotting tool for analyzing trial
|
|
41
41
|
parser.add_argument('--min', type=float, help='Minimum value for result filtering')
|
42
42
|
parser.add_argument('--max', type=float, help='Maximum value for result filtering')
|
43
43
|
parser.add_argument('--save_to_file', nargs='?', const='plot', type=str, help='Path to save the plot(s)')
|
44
|
+
parser.add_argument('--darkmode', help='Enable darktheme', action='store_true', default=False)
|
44
45
|
parser.add_argument('--run_dir', type=str, help='Path to a CSV file', required=True)
|
45
46
|
parser.add_argument('--no_plt_show', help='Disable showing the plot', action='store_true', default=False)
|
46
47
|
args = parser.parse_args()
|
@@ -121,4 +122,10 @@ if __name__ == "__main__":
|
|
121
122
|
logging.error("Specified --run_dir does not exist")
|
122
123
|
sys.exit(1)
|
123
124
|
|
124
|
-
|
125
|
+
theme = "fast"
|
126
|
+
|
127
|
+
if args is not None and args.darkmode:
|
128
|
+
theme = "dark_background"
|
129
|
+
|
130
|
+
with plt.style.context(theme):
|
131
|
+
update_graph()
|
@@ -12,13 +12,20 @@ import os
|
|
12
12
|
import sys
|
13
13
|
import traceback
|
14
14
|
from datetime import datetime, timezone
|
15
|
-
from typing import Any
|
16
15
|
|
17
16
|
import matplotlib.pyplot as plt
|
18
17
|
import pandas as pd
|
19
18
|
|
20
19
|
from beartype import beartype
|
21
20
|
|
21
|
+
parser = argparse.ArgumentParser(description='Plot worker usage from CSV file')
|
22
|
+
parser.add_argument('--run_dir', type=str, help='Directory containing worker usage CSV file')
|
23
|
+
parser.add_argument('--debug', action='store_true', help='Enable debug mode')
|
24
|
+
parser.add_argument('--darkmode', help='Enable darktheme', action='store_true', default=False)
|
25
|
+
parser.add_argument('--save_to_file', type=str, help='Save the plot to the specified file', default=None)
|
26
|
+
parser.add_argument('--no_plt_show', help='Disable showing the plot', action='store_true', default=False)
|
27
|
+
args = parser.parse_args()
|
28
|
+
|
22
29
|
script_dir = os.path.dirname(os.path.realpath(__file__))
|
23
30
|
helpers_file = f"{script_dir}/.helpers.py"
|
24
31
|
spec = importlib.util.spec_from_file_location(
|
@@ -32,7 +39,7 @@ else:
|
|
32
39
|
raise ImportError(f"Could not load module from {helpers_file}")
|
33
40
|
|
34
41
|
@beartype
|
35
|
-
def plot_worker_usage(
|
42
|
+
def plot_worker_usage(pd_csv: str) -> None:
|
36
43
|
try:
|
37
44
|
data = pd.read_csv(pd_csv, names=['time', 'num_parallel_jobs', 'nr_current_workers', 'percentage'])
|
38
45
|
|
@@ -93,15 +100,6 @@ def plot_worker_usage(args: Any, pd_csv: str) -> None:
|
|
93
100
|
print(traceback.format_exc(), file=sys.stderr)
|
94
101
|
|
95
102
|
def main() -> None:
|
96
|
-
parser = argparse.ArgumentParser(description='Plot worker usage from CSV file')
|
97
|
-
parser.add_argument('--run_dir', type=str, help='Directory containing worker usage CSV file')
|
98
|
-
parser.add_argument('--debug', action='store_true', help='Enable debug mode')
|
99
|
-
|
100
|
-
parser.add_argument('--save_to_file', type=str, help='Save the plot to the specified file', default=None)
|
101
|
-
|
102
|
-
parser.add_argument('--no_plt_show', help='Disable showing the plot', action='store_true', default=False)
|
103
|
-
args = parser.parse_args()
|
104
|
-
|
105
103
|
if args.debug:
|
106
104
|
print(f"Debug mode enabled. Run directory: {args.run_dir}")
|
107
105
|
|
@@ -111,7 +109,7 @@ def main() -> None:
|
|
111
109
|
worker_usage_csv = os.path.join(args.run_dir, "worker_usage.csv")
|
112
110
|
if os.path.exists(worker_usage_csv):
|
113
111
|
try:
|
114
|
-
plot_worker_usage(
|
112
|
+
plot_worker_usage(worker_usage_csv)
|
115
113
|
except Exception as e:
|
116
114
|
helpers.log_error(f"Error: {e}")
|
117
115
|
sys.exit(3)
|
@@ -120,4 +118,10 @@ def main() -> None:
|
|
120
118
|
sys.exit(19)
|
121
119
|
|
122
120
|
if __name__ == "__main__":
|
123
|
-
|
121
|
+
theme = "fast"
|
122
|
+
|
123
|
+
if args is not None and args.darkmode:
|
124
|
+
theme = "dark_background"
|
125
|
+
|
126
|
+
with plt.style.context(theme):
|
127
|
+
main()
|
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
|