holobench 1.23.0__tar.gz → 1.24.0__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.
- {holobench-1.23.0/holobench.egg-info → holobench-1.24.0}/PKG-INFO +1 -1
- {holobench-1.23.0 → holobench-1.24.0}/bencher/bencher.py +19 -2
- {holobench-1.23.0 → holobench-1.24.0/holobench.egg-info}/PKG-INFO +1 -1
- {holobench-1.23.0 → holobench-1.24.0}/pyproject.toml +4 -1
- {holobench-1.23.0 → holobench-1.24.0}/test/test_bench_examples.py +4 -0
- {holobench-1.23.0 → holobench-1.24.0}/LICENSE +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/README.md +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/bencher/__init__.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/bencher/bench_cfg.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/bencher/bench_plot_server.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/bencher/bench_report.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/bencher/bench_runner.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/bencher/caching.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/bencher/class_enum.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/bencher/job.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/bencher/optuna_conversions.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/bencher/utils.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/bencher/video_writer.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/bencher/worker_job.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/holobench.egg-info/SOURCES.txt +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/holobench.egg-info/dependency_links.txt +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/holobench.egg-info/not-zip-safe +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/holobench.egg-info/requires.txt +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/holobench.egg-info/top_level.txt +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/package.xml +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/resource/bencher +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/setup.cfg +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/setup.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/test/test_bench_report.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/test/test_bench_result_base.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/test/test_bench_runner.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/test/test_bencher.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/test/test_cache.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/test/test_class_enum.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/test/test_combinations.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/test/test_composable_container_base.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/test/test_composable_container_video.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/test/test_float_formatter.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/test/test_job.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/test/test_meta_tests.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/test/test_parametrized_sweep.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/test/test_plot_filter.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/test/test_plot_server.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/test/test_sample_cache.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/test/test_sweep_base.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/test/test_sweep_vars.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/test/test_utils.py +0 -0
- {holobench-1.23.0 → holobench-1.24.0}/test/test_vars.py +0 -0
@@ -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]"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "holobench"
|
3
|
-
version = "1.
|
3
|
+
version = "1.24.0"
|
4
4
|
|
5
5
|
authors = [{ name = "Austin Gregg-Smith", email = "blooop@gmail.com" }]
|
6
6
|
description = "A package for benchmarking the performance of arbitrary functions"
|
@@ -80,8 +80,11 @@ test = "pytest"
|
|
80
80
|
coverage = "coverage run -m pytest && coverage xml -o coverage.xml"
|
81
81
|
coverage-report = "coverage report -m"
|
82
82
|
update-lock = "pixi update && git commit -a -m'update pixi.lock'"
|
83
|
+
fix = { depends_on = ["update-lock", "format", "ruff-lint"] }
|
83
84
|
push = "git push"
|
84
85
|
update-lock-push = { depends_on = ["update-lock", "push"] }
|
86
|
+
fix-commit-push = { depends_on = ["fix", "commit-format", "update-lock-push"] }
|
87
|
+
|
85
88
|
ci-no-cover = { depends_on = ["style", "test"] }
|
86
89
|
ci = { depends_on = [
|
87
90
|
"format",
|
@@ -9,6 +9,7 @@ from bencher.example.example_time_event import run_example_time_event
|
|
9
9
|
from bencher.example.example_float3D import example_floats3D
|
10
10
|
|
11
11
|
from bencher.example.example_custom_sweep import example_custom_sweep
|
12
|
+
from bencher.example.example_custom_sweep2 import example_custom_sweep2
|
12
13
|
from bencher.example.example_workflow import example_floats2D_workflow, example_floats3D_workflow
|
13
14
|
from bencher.example.example_holosweep import example_holosweep
|
14
15
|
from bencher.example.example_holosweep_tap import example_holosweep_tap
|
@@ -85,6 +86,9 @@ class TestBenchExamples(unittest.TestCase):
|
|
85
86
|
def test_example_custom_sweep(self) -> None:
|
86
87
|
self.examples_asserts(example_custom_sweep(self.create_run_cfg()))
|
87
88
|
|
89
|
+
def test_example_custom2(self) -> None:
|
90
|
+
self.examples_asserts(example_custom_sweep2(self.create_run_cfg()))
|
91
|
+
|
88
92
|
def test_example_floats2D_workflow(self) -> None:
|
89
93
|
self.examples_asserts(example_floats2D_workflow(self.create_run_cfg()))
|
90
94
|
|
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
|
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
|