holobench 1.11.0__tar.gz → 1.12.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.
Files changed (81) hide show
  1. {holobench-1.11.0 → holobench-1.12.0}/PKG-INFO +13 -13
  2. {holobench-1.11.0 → holobench-1.12.0}/bencher/bencher.py +9 -11
  3. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_float_cat.py +1 -1
  4. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/meta/example_meta.py +1 -1
  5. {holobench-1.11.0 → holobench-1.12.0}/pyproject.toml +13 -13
  6. {holobench-1.11.0 → holobench-1.12.0}/README.md +0 -0
  7. {holobench-1.11.0 → holobench-1.12.0}/bencher/__init__.py +0 -0
  8. {holobench-1.11.0 → holobench-1.12.0}/bencher/bench_cfg.py +0 -0
  9. {holobench-1.11.0 → holobench-1.12.0}/bencher/bench_plot_server.py +0 -0
  10. {holobench-1.11.0 → holobench-1.12.0}/bencher/bench_report.py +0 -0
  11. {holobench-1.11.0 → holobench-1.12.0}/bencher/bench_runner.py +0 -0
  12. {holobench-1.11.0 → holobench-1.12.0}/bencher/caching.py +0 -0
  13. {holobench-1.11.0 → holobench-1.12.0}/bencher/class_enum.py +0 -0
  14. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/__init__.py +0 -0
  15. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/benchmark_data.py +0 -0
  16. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_all.py +0 -0
  17. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_categorical.py +0 -0
  18. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_custom_sweep.py +0 -0
  19. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_docs.py +0 -0
  20. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_float3D.py +0 -0
  21. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_floats.py +0 -0
  22. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_floats2D.py +0 -0
  23. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_holosweep.py +0 -0
  24. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_holosweep_objects.py +0 -0
  25. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_holosweep_tap.py +0 -0
  26. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_image.py +0 -0
  27. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_levels.py +0 -0
  28. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_pareto.py +0 -0
  29. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_sample_cache.py +0 -0
  30. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_sample_cache_context.py +0 -0
  31. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_simple.py +0 -0
  32. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_simple_bool.py +0 -0
  33. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_simple_cat.py +0 -0
  34. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_simple_float.py +0 -0
  35. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_strings.py +0 -0
  36. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_time_event.py +0 -0
  37. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_video.py +0 -0
  38. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/example_workflow.py +0 -0
  39. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/experimental/example_bokeh_plotly.py +0 -0
  40. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/experimental/example_hover_ex.py +0 -0
  41. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/experimental/example_hvplot_explorer.py +0 -0
  42. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/experimental/example_interactive.py +0 -0
  43. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/experimental/example_streamnd.py +0 -0
  44. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/experimental/example_streams.py +0 -0
  45. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/experimental/example_template.py +0 -0
  46. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/experimental/example_updates.py +0 -0
  47. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/experimental/example_vector.py +0 -0
  48. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/meta/example_meta_cat.py +0 -0
  49. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/meta/example_meta_float.py +0 -0
  50. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/meta/example_meta_levels.py +0 -0
  51. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/optuna/example_optuna.py +0 -0
  52. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/shelved/example_float2D_scatter.py +0 -0
  53. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/shelved/example_float3D_cone.py +0 -0
  54. {holobench-1.11.0 → holobench-1.12.0}/bencher/example/shelved/example_kwargs.py +0 -0
  55. {holobench-1.11.0 → holobench-1.12.0}/bencher/job.py +0 -0
  56. {holobench-1.11.0 → holobench-1.12.0}/bencher/optuna_conversions.py +0 -0
  57. {holobench-1.11.0 → holobench-1.12.0}/bencher/plotting/__init__.py +0 -0
  58. {holobench-1.11.0 → holobench-1.12.0}/bencher/plotting/plot_filter.py +0 -0
  59. {holobench-1.11.0 → holobench-1.12.0}/bencher/plotting/plt_cnt_cfg.py +0 -0
  60. {holobench-1.11.0 → holobench-1.12.0}/bencher/results/__init__.py +0 -0
  61. {holobench-1.11.0 → holobench-1.12.0}/bencher/results/bench_result.py +0 -0
  62. {holobench-1.11.0 → holobench-1.12.0}/bencher/results/bench_result_base.py +0 -0
  63. {holobench-1.11.0 → holobench-1.12.0}/bencher/results/composable_container/__init__.py +0 -0
  64. {holobench-1.11.0 → holobench-1.12.0}/bencher/results/composable_container/composable_container_base.py +0 -0
  65. {holobench-1.11.0 → holobench-1.12.0}/bencher/results/composable_container/composable_container_panel.py +0 -0
  66. {holobench-1.11.0 → holobench-1.12.0}/bencher/results/composable_container/composable_container_video.py +0 -0
  67. {holobench-1.11.0 → holobench-1.12.0}/bencher/results/float_formatter.py +0 -0
  68. {holobench-1.11.0 → holobench-1.12.0}/bencher/results/holoview_result.py +0 -0
  69. {holobench-1.11.0 → holobench-1.12.0}/bencher/results/optuna_result.py +0 -0
  70. {holobench-1.11.0 → holobench-1.12.0}/bencher/results/panel_result.py +0 -0
  71. {holobench-1.11.0 → holobench-1.12.0}/bencher/results/plotly_result.py +0 -0
  72. {holobench-1.11.0 → holobench-1.12.0}/bencher/results/video_result.py +0 -0
  73. {holobench-1.11.0 → holobench-1.12.0}/bencher/results/video_summary.py +0 -0
  74. {holobench-1.11.0 → holobench-1.12.0}/bencher/utils.py +0 -0
  75. {holobench-1.11.0 → holobench-1.12.0}/bencher/variables/inputs.py +0 -0
  76. {holobench-1.11.0 → holobench-1.12.0}/bencher/variables/parametrised_sweep.py +0 -0
  77. {holobench-1.11.0 → holobench-1.12.0}/bencher/variables/results.py +0 -0
  78. {holobench-1.11.0 → holobench-1.12.0}/bencher/variables/sweep_base.py +0 -0
  79. {holobench-1.11.0 → holobench-1.12.0}/bencher/variables/time.py +0 -0
  80. {holobench-1.11.0 → holobench-1.12.0}/bencher/video_writer.py +0 -0
  81. {holobench-1.11.0 → holobench-1.12.0}/bencher/worker_job.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: holobench
3
- Version: 1.11.0
3
+ Version: 1.12.0
4
4
  Summary: A package for benchmarking the performance of arbitrary functions
5
5
  Author-email: Austin Gregg-Smith <blooop@gmail.com>
6
6
  Description-Content-Type: text/markdown
@@ -8,26 +8,26 @@ Requires-Dist: holoviews>=1.15,<=1.18.3
8
8
  Requires-Dist: numpy>=1.0,<=1.26.4
9
9
  Requires-Dist: param>=1.13.0,<=2.1.0
10
10
  Requires-Dist: hvplot>=0.8,<=0.9.2
11
- Requires-Dist: matplotlib>=3.6.3,<=3.8.3
12
- Requires-Dist: panel>=1.3.6,<=1.4.0
11
+ Requires-Dist: matplotlib>=3.6.3,<=3.8.4
12
+ Requires-Dist: panel>=1.3.6,<=1.4.2
13
13
  Requires-Dist: diskcache>=5.6,<=5.6.3
14
14
  Requires-Dist: optuna>=3.2,<=3.6.1
15
15
  Requires-Dist: xarray>=2023.7,<=2024.3.0
16
- Requires-Dist: plotly>=5.15,<=5.20.0
16
+ Requires-Dist: plotly>=5.15,<=5.21.0
17
17
  Requires-Dist: sortedcontainers>=2.4,<=2.4
18
- Requires-Dist: pandas>=2.0,<=2.2.1
18
+ Requires-Dist: pandas>=2.0,<=2.2.2
19
19
  Requires-Dist: strenum>=0.4.0,<=0.4.15
20
- Requires-Dist: scikit-learn>=1.2,<=1.4.1.post1
20
+ Requires-Dist: scikit-learn>=1.2,<=1.4.2
21
21
  Requires-Dist: str2bool>=1.1,<=1.1
22
22
  Requires-Dist: scoop>=0.7.0,<=0.7.2.0
23
23
  Requires-Dist: moviepy>=1.0.3,<=1.0.3
24
- Requires-Dist: black>=23,<=24.1.1 ; extra == "test"
25
- Requires-Dist: pylint>=2.16,<=3.0.3 ; extra == "test"
26
- Requires-Dist: pytest-cov>=4.1,<=4.1 ; extra == "test"
27
- Requires-Dist: pytest>=7.4,<=8.0.0 ; extra == "test"
28
- Requires-Dist: hypothesis>=6.82,<=6.97.1 ; extra == "test"
29
- Requires-Dist: ruff>=0.0.280,<=0.1.14 ; extra == "test"
30
- Requires-Dist: coverage>=7.2.7,<=7.4.1 ; extra == "test"
24
+ Requires-Dist: black>=23,<=24.4.2 ; extra == "test"
25
+ Requires-Dist: pylint>=2.16,<=3.1.0 ; extra == "test"
26
+ Requires-Dist: pytest-cov>=4.1,<=5.0.0 ; extra == "test"
27
+ Requires-Dist: pytest>=7.4,<=8.2.0 ; extra == "test"
28
+ Requires-Dist: hypothesis>=6.82,<=6.100.2 ; extra == "test"
29
+ Requires-Dist: ruff>=0.0.280,<=0.4.2 ; extra == "test"
30
+ Requires-Dist: coverage>=7.2.7,<=7.5.0 ; extra == "test"
31
31
  Project-URL: Documentation, https://bencher.readthedocs.io/en/latest/
32
32
  Project-URL: Home, https://github.com/dyson-ai/bencher
33
33
  Project-URL: Repository, https://github.com/dyson-ai/bencher
@@ -217,7 +217,7 @@ class Bench(BenchPlotServer):
217
217
  group_size: int = 1,
218
218
  iterations: int = 1,
219
219
  relationship_cb=None,
220
- plot=None,
220
+ plot_callbacks: List | bool = None,
221
221
  ) -> List[BenchResult]:
222
222
  results = []
223
223
  if relationship_cb is None:
@@ -233,7 +233,7 @@ class Bench(BenchPlotServer):
233
233
  result_vars=result_vars,
234
234
  const_vars=const_vars,
235
235
  run_cfg=run_cfg,
236
- plot=plot,
236
+ plot_callbacks=plot_callbacks,
237
237
  )
238
238
 
239
239
  if optimise_var is not None:
@@ -253,8 +253,7 @@ class Bench(BenchPlotServer):
253
253
  pass_repeat: bool = False,
254
254
  tag: str = "",
255
255
  run_cfg: BenchRunCfg = None,
256
- plot: bool = None,
257
- plot_callbacks=None,
256
+ plot_callbacks: List | bool = None,
258
257
  ) -> BenchResult:
259
258
  """The all in 1 function benchmarker and results plotter.
260
259
 
@@ -270,7 +269,7 @@ class Bench(BenchPlotServer):
270
269
  you want the benchmark function to be passed the repeat number
271
270
  tag (str,optional): Use tags to group different benchmarks together.
272
271
  run_cfg: (BenchRunCfg, optional): A config for storing how the benchmarks and run
273
- plot_callbacks: A list of plot callbacks to clal on the results
272
+ plot_callbacks: (List | bool) A list of plot callbacks to call on the results. Pass false or an empty list to turn off plotting
274
273
  Raises:
275
274
  ValueError: If a result variable is not set
276
275
 
@@ -329,8 +328,6 @@ class Bench(BenchPlotServer):
329
328
  cv_list = list(const_vars[i])
330
329
  cv_list[0] = self.convert_vars_to_params(cv_list[0], "const")
331
330
  const_vars[i] = cv_list
332
- if plot is None:
333
- plot = self.plot
334
331
 
335
332
  if run_cfg is None:
336
333
  if self.run_cfg is None:
@@ -387,10 +384,12 @@ class Bench(BenchPlotServer):
387
384
  )
388
385
 
389
386
  if plot_callbacks is None:
390
- if self.plot_callbacks is not None and len(self.plot_callbacks) == 0:
387
+ plot_callbacks = [] if self.plot_callbacks is None else self.plot_callbacks
388
+ else:
389
+ if isinstance(plot_callbacks, bool):
390
+ plot_callbacks = [BenchResult.to_auto_plots] if plot_callbacks else []
391
+ elif len(self.plot_callbacks) == 0:
391
392
  plot_callbacks = [BenchResult.to_auto_plots]
392
- else:
393
- plot_callbacks = self.plot_callbacks
394
393
 
395
394
  bench_cfg = BenchCfg(
396
395
  input_vars=input_vars,
@@ -403,7 +402,6 @@ class Bench(BenchPlotServer):
403
402
  title=title,
404
403
  pass_repeat=pass_repeat,
405
404
  tag=run_cfg.run_tag + tag,
406
- auto_plot=plot,
407
405
  plot_callbacks=plot_callbacks,
408
406
  )
409
407
  return self.run_sweep(bench_cfg, run_cfg, time_src)
@@ -46,7 +46,7 @@ def example_float_cat(
46
46
  title="Float 1D Cat 1D Example",
47
47
  description="""Following from the previous example lets add another input parameter to see how that affects the output. We pass the boolean 'noisy' and keep the other parameters the same""",
48
48
  post_description="Now the plot has two lines, one for each of the boolean values where noisy=true and noisy=false.",
49
- plot=False,
49
+ plot_callbacks=False,
50
50
  )
51
51
 
52
52
  # report.append(bench.get_result().to_curve())
@@ -128,7 +128,7 @@ class BenchMeta(bch.ParametrizedSweep):
128
128
  # result_vars=[BenchableObject.param.distance, BenchableObject.param.sample_noise],
129
129
  # result_vars=[ BenchableObject.param.sample_noise],
130
130
  # result_vars=[BenchableObject.param.result_hmap],
131
- plot=False,
131
+ plot_callbacks=False,
132
132
  )
133
133
 
134
134
  self.plots = bch.ResultReference()
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "holobench"
3
- version = "1.11.0"
3
+ version = "1.12.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"
@@ -15,16 +15,16 @@ dependencies = [
15
15
  "numpy>=1.0,<=1.26.4",
16
16
  "param>=1.13.0,<=2.1.0",
17
17
  "hvplot>=0.8,<=0.9.2",
18
- "matplotlib>=3.6.3,<=3.8.3",
19
- "panel>=1.3.6,<=1.4.0",
18
+ "matplotlib>=3.6.3,<=3.8.4",
19
+ "panel>=1.3.6,<=1.4.2",
20
20
  "diskcache>=5.6,<=5.6.3",
21
21
  "optuna>=3.2,<=3.6.1",
22
22
  "xarray>=2023.7,<=2024.3.0",
23
- "plotly>=5.15,<=5.20.0",
23
+ "plotly>=5.15,<=5.21.0",
24
24
  "sortedcontainers>=2.4,<=2.4",
25
- "pandas>=2.0,<=2.2.1",
25
+ "pandas>=2.0,<=2.2.2",
26
26
  "strenum>=0.4.0,<=0.4.15",
27
- "scikit-learn>=1.2,<=1.4.1.post1",
27
+ "scikit-learn>=1.2,<=1.4.2",
28
28
  "str2bool>=1.1,<=1.1",
29
29
  "scoop>=0.7.0,<=0.7.2.0",
30
30
  "moviepy>=1.0.3,<=1.0.3",
@@ -32,13 +32,13 @@ dependencies = [
32
32
 
33
33
  [project.optional-dependencies]
34
34
  test = [
35
- "black>=23,<=24.1.1",
36
- "pylint>=2.16,<=3.0.3",
37
- "pytest-cov>=4.1,<=4.1",
38
- "pytest>=7.4,<=8.0.0",
39
- "hypothesis>=6.82,<=6.97.1",
40
- "ruff>=0.0.280,<=0.1.14",
41
- "coverage>=7.2.7,<=7.4.1",
35
+ "black>=23,<=24.4.2",
36
+ "pylint>=2.16,<=3.1.0",
37
+ "pytest-cov>=4.1,<=5.0.0",
38
+ "pytest>=7.4,<=8.2.0",
39
+ "hypothesis>=6.82,<=6.100.2",
40
+ "ruff>=0.0.280,<=0.4.2",
41
+ "coverage>=7.2.7,<=7.5.0",
42
42
  ]
43
43
 
44
44
  [project.urls]
File without changes
File without changes
File without changes