holobench 1.23.0__py3-none-any.whl → 1.24.0__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.
- bencher/bencher.py +19 -2
- {holobench-1.23.0.dist-info → holobench-1.24.0.dist-info}/METADATA +1 -1
- {holobench-1.23.0.dist-info → holobench-1.24.0.dist-info}/RECORD +8 -8
- {holobench-1.23.0.data → holobench-1.24.0.data}/data/share/ament_index/resource_index/packages/bencher +0 -0
- {holobench-1.23.0.data → holobench-1.24.0.data}/data/share/bencher/package.xml +0 -0
- {holobench-1.23.0.dist-info → holobench-1.24.0.dist-info}/LICENSE +0 -0
- {holobench-1.23.0.dist-info → holobench-1.24.0.dist-info}/WHEEL +0 -0
- {holobench-1.23.0.dist-info → holobench-1.24.0.dist-info}/top_level.txt +0 -0
bencher/bencher.py
CHANGED
@@ -315,8 +315,21 @@ class Bench(BenchPlotServer):
|
|
315
315
|
else:
|
316
316
|
const_vars = deepcopy(const_vars)
|
317
317
|
|
318
|
-
|
319
|
-
|
318
|
+
if isinstance(input_vars, dict):
|
319
|
+
input_lists = []
|
320
|
+
for k, v in input_vars.items():
|
321
|
+
param_var = self.convert_vars_to_params(k, "input")
|
322
|
+
if isinstance(v, list):
|
323
|
+
assert len(v) > 0
|
324
|
+
param_var = param_var.with_sample_values(v)
|
325
|
+
else:
|
326
|
+
raise RuntimeError("Unsupported type")
|
327
|
+
input_lists.append(param_var)
|
328
|
+
|
329
|
+
input_vars = input_lists
|
330
|
+
else:
|
331
|
+
for i in range(len(input_vars)):
|
332
|
+
input_vars[i] = self.convert_vars_to_params(input_vars[i], "input")
|
320
333
|
for i in range(len(result_vars)):
|
321
334
|
result_vars[i] = self.convert_vars_to_params(result_vars[i], "result")
|
322
335
|
|
@@ -484,6 +497,10 @@ class Bench(BenchPlotServer):
|
|
484
497
|
"""
|
485
498
|
if isinstance(variable, str):
|
486
499
|
variable = self.worker_class_instance.param.objects(instance=False)[variable]
|
500
|
+
if isinstance(variable, tuple):
|
501
|
+
variable = self.worker_class_instance.param.objects(instance=False)[
|
502
|
+
variable[0]
|
503
|
+
].with_sample_values(variable[1])
|
487
504
|
if not isinstance(variable, param.Parameter):
|
488
505
|
raise TypeError(
|
489
506
|
f"You need to use {var_type}_vars =[{self.worker_input_cfg}.param.your_variable], instead of {var_type}_vars =[{self.worker_input_cfg}.your_variable]"
|
@@ -3,7 +3,7 @@ bencher/bench_cfg.py,sha256=8rvJyeQXalZmYF8Lb-NKb9RFJs0w08k9ogcZSR1rhgs,18413
|
|
3
3
|
bencher/bench_plot_server.py,sha256=D00_SOrHa2IT8zAjwetoNL6tEiHSHvXnbea9iElCLVk,4195
|
4
4
|
bencher/bench_report.py,sha256=jh3T_q9KByZDeMPMf0KNJojZukxRzkfaYGeuWQU8MKM,10528
|
5
5
|
bencher/bench_runner.py,sha256=-SzAKd6QbPJ05KaW3vteFIkE-UtlFS55Ob9QeE5eRXw,6202
|
6
|
-
bencher/bencher.py,sha256=
|
6
|
+
bencher/bencher.py,sha256=jnpGAhw1pFwoZUK-lnDvRDASYNbL2cE3JQnvv7r7HuE,34106
|
7
7
|
bencher/caching.py,sha256=AusaNrzGGlj5m6zcwcqnTn55Mam2mQdF--oqelO806M,1627
|
8
8
|
bencher/class_enum.py,sha256=kYHW9qKkKcNdwaXizZL-fTptS_DUEGv4c88yCehk3gc,1492
|
9
9
|
bencher/job.py,sha256=swa0VwrZf41v7qNjreVDIYUU6r_dfuLipPZbg_w5x7c,6089
|
@@ -11,10 +11,10 @@ bencher/optuna_conversions.py,sha256=an-LfPsQXyyvhIZnG8Wl1RQVYMvJj7WOi3YNqoUnuxQ
|
|
11
11
|
bencher/utils.py,sha256=9KAThtIG8jNd0nd4Wft8miNM_yHWmZUkIBfJh19pzgI,6480
|
12
12
|
bencher/video_writer.py,sha256=B-V1tALd3oPDytaAsl8I6qUztDQlFbkp9gSYco-ah44,2175
|
13
13
|
bencher/worker_job.py,sha256=FREi0yWQACFmH86R1j-LH72tALEFkKhLDmmoGQY9Jh4,1571
|
14
|
-
holobench-1.
|
15
|
-
holobench-1.
|
16
|
-
holobench-1.
|
17
|
-
holobench-1.
|
18
|
-
holobench-1.
|
19
|
-
holobench-1.
|
20
|
-
holobench-1.
|
14
|
+
holobench-1.24.0.data/data/share/ament_index/resource_index/packages/bencher,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
15
|
+
holobench-1.24.0.data/data/share/bencher/package.xml,sha256=HxWM9qIEiLbE60tG0aKsS7q3UaSKDyCMD4-1nYw8vOs,1045
|
16
|
+
holobench-1.24.0.dist-info/LICENSE,sha256=dSHXTdRY4Y7qGFMv63UksV700iff7iE-p7GGs6Sbnvo,1065
|
17
|
+
holobench-1.24.0.dist-info/METADATA,sha256=Jav2OMVxvRk6NVDojCjh5maOYS9jtRUKbGn5cEuwSCo,5691
|
18
|
+
holobench-1.24.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
19
|
+
holobench-1.24.0.dist-info/top_level.txt,sha256=rkP5-F_W08mOD-25ZPkt0HJsHxedb2EiRcRA7IP6Ceg,8
|
20
|
+
holobench-1.24.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|