holobench 1.17.0__tar.gz → 1.18.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.17.0 → holobench-1.18.0}/PKG-INFO +4 -4
  2. {holobench-1.17.0 → holobench-1.18.0}/bencher/bench_cfg.py +13 -20
  3. {holobench-1.17.0 → holobench-1.18.0}/bencher/results/holoview_result.py +5 -2
  4. {holobench-1.17.0 → holobench-1.18.0}/bencher/variables/inputs.py +2 -2
  5. {holobench-1.17.0 → holobench-1.18.0}/pyproject.toml +4 -4
  6. {holobench-1.17.0 → holobench-1.18.0}/README.md +0 -0
  7. {holobench-1.17.0 → holobench-1.18.0}/bencher/__init__.py +0 -0
  8. {holobench-1.17.0 → holobench-1.18.0}/bencher/bench_plot_server.py +0 -0
  9. {holobench-1.17.0 → holobench-1.18.0}/bencher/bench_report.py +0 -0
  10. {holobench-1.17.0 → holobench-1.18.0}/bencher/bench_runner.py +0 -0
  11. {holobench-1.17.0 → holobench-1.18.0}/bencher/bencher.py +0 -0
  12. {holobench-1.17.0 → holobench-1.18.0}/bencher/caching.py +0 -0
  13. {holobench-1.17.0 → holobench-1.18.0}/bencher/class_enum.py +0 -0
  14. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/__init__.py +0 -0
  15. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/benchmark_data.py +0 -0
  16. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_all.py +0 -0
  17. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_categorical.py +0 -0
  18. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_custom_sweep.py +0 -0
  19. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_docs.py +0 -0
  20. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_float3D.py +0 -0
  21. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_float_cat.py +0 -0
  22. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_floats.py +0 -0
  23. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_floats2D.py +0 -0
  24. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_holosweep.py +0 -0
  25. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_holosweep_objects.py +0 -0
  26. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_holosweep_tap.py +0 -0
  27. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_image.py +0 -0
  28. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_levels.py +0 -0
  29. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_pareto.py +0 -0
  30. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_sample_cache.py +0 -0
  31. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_sample_cache_context.py +0 -0
  32. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_simple.py +0 -0
  33. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_simple_bool.py +0 -0
  34. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_simple_cat.py +0 -0
  35. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_simple_float.py +0 -0
  36. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_strings.py +0 -0
  37. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_time_event.py +0 -0
  38. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_video.py +0 -0
  39. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/example_workflow.py +0 -0
  40. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/experimental/example_bokeh_plotly.py +0 -0
  41. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/experimental/example_hover_ex.py +0 -0
  42. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/experimental/example_hvplot_explorer.py +0 -0
  43. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/experimental/example_interactive.py +0 -0
  44. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/experimental/example_streamnd.py +0 -0
  45. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/experimental/example_streams.py +0 -0
  46. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/experimental/example_template.py +0 -0
  47. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/experimental/example_updates.py +0 -0
  48. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/experimental/example_vector.py +0 -0
  49. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/meta/example_meta.py +0 -0
  50. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/meta/example_meta_cat.py +0 -0
  51. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/meta/example_meta_float.py +0 -0
  52. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/meta/example_meta_levels.py +0 -0
  53. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/optuna/example_optuna.py +0 -0
  54. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/shelved/example_float2D_scatter.py +0 -0
  55. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/shelved/example_float3D_cone.py +0 -0
  56. {holobench-1.17.0 → holobench-1.18.0}/bencher/example/shelved/example_kwargs.py +0 -0
  57. {holobench-1.17.0 → holobench-1.18.0}/bencher/job.py +0 -0
  58. {holobench-1.17.0 → holobench-1.18.0}/bencher/optuna_conversions.py +0 -0
  59. {holobench-1.17.0 → holobench-1.18.0}/bencher/plotting/__init__.py +0 -0
  60. {holobench-1.17.0 → holobench-1.18.0}/bencher/plotting/plot_filter.py +0 -0
  61. {holobench-1.17.0 → holobench-1.18.0}/bencher/plotting/plt_cnt_cfg.py +0 -0
  62. {holobench-1.17.0 → holobench-1.18.0}/bencher/results/__init__.py +0 -0
  63. {holobench-1.17.0 → holobench-1.18.0}/bencher/results/bench_result.py +0 -0
  64. {holobench-1.17.0 → holobench-1.18.0}/bencher/results/bench_result_base.py +0 -0
  65. {holobench-1.17.0 → holobench-1.18.0}/bencher/results/composable_container/__init__.py +0 -0
  66. {holobench-1.17.0 → holobench-1.18.0}/bencher/results/composable_container/composable_container_base.py +0 -0
  67. {holobench-1.17.0 → holobench-1.18.0}/bencher/results/composable_container/composable_container_panel.py +0 -0
  68. {holobench-1.17.0 → holobench-1.18.0}/bencher/results/composable_container/composable_container_video.py +0 -0
  69. {holobench-1.17.0 → holobench-1.18.0}/bencher/results/float_formatter.py +0 -0
  70. {holobench-1.17.0 → holobench-1.18.0}/bencher/results/optuna_result.py +0 -0
  71. {holobench-1.17.0 → holobench-1.18.0}/bencher/results/panel_result.py +0 -0
  72. {holobench-1.17.0 → holobench-1.18.0}/bencher/results/plotly_result.py +0 -0
  73. {holobench-1.17.0 → holobench-1.18.0}/bencher/results/video_result.py +0 -0
  74. {holobench-1.17.0 → holobench-1.18.0}/bencher/results/video_summary.py +0 -0
  75. {holobench-1.17.0 → holobench-1.18.0}/bencher/utils.py +0 -0
  76. {holobench-1.17.0 → holobench-1.18.0}/bencher/variables/parametrised_sweep.py +0 -0
  77. {holobench-1.17.0 → holobench-1.18.0}/bencher/variables/results.py +0 -0
  78. {holobench-1.17.0 → holobench-1.18.0}/bencher/variables/sweep_base.py +0 -0
  79. {holobench-1.17.0 → holobench-1.18.0}/bencher/variables/time.py +0 -0
  80. {holobench-1.17.0 → holobench-1.18.0}/bencher/video_writer.py +0 -0
  81. {holobench-1.17.0 → holobench-1.18.0}/bencher/worker_job.py +0 -0
@@ -1,19 +1,19 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: holobench
3
- Version: 1.17.0
3
+ Version: 1.18.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
7
7
  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
- Requires-Dist: hvplot>=0.8,<=0.9.2
10
+ Requires-Dist: hvplot>=0.8,<=0.10.0
11
11
  Requires-Dist: matplotlib>=3.6.3,<=3.8.4
12
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
- Requires-Dist: xarray>=2023.7,<=2024.3.0
16
- Requires-Dist: plotly>=5.15,<=5.21.0
15
+ Requires-Dist: xarray>=2023.7,<=2024.5.0
16
+ Requires-Dist: plotly>=5.15,<=5.22.0
17
17
  Requires-Dist: sortedcontainers>=2.4,<=2.4
18
18
  Requires-Dist: pandas>=2.0,<=2.2.2
19
19
  Requires-Dist: strenum>=0.4.0,<=0.4.15
@@ -374,26 +374,19 @@ class BenchCfg(BenchRunCfg):
374
374
  for rv in self.result_vars:
375
375
  benchmark_sampling_str.extend(describe_variable(rv, False))
376
376
 
377
- print_meta = True
378
- # if len(self.meta_vars) == 1:
379
- # mv = self.meta_vars[0]
380
- # if mv.name == "repeat" and mv.samples == 1:
381
- # print_meta = False
382
-
383
- if print_meta:
384
- benchmark_sampling_str.append("\nMeta Variables:")
385
- benchmark_sampling_str.append(f" run date: {self.run_date}")
386
- if self.run_tag is not None and len(self.run_tag) > 0:
387
- benchmark_sampling_str.append(f" run tag: {self.run_tag}")
388
- if self.level is not None:
389
- benchmark_sampling_str.append(f" bench level: {self.level}")
390
- benchmark_sampling_str.append(f" use_cache: {self.use_cache}")
391
- benchmark_sampling_str.append(f" use_sample_cache: {self.use_sample_cache}")
392
- benchmark_sampling_str.append(f" only_hash_tag: {self.only_hash_tag}")
393
- benchmark_sampling_str.append(f" parallel: {self.executor}")
394
-
395
- for mv in self.meta_vars:
396
- benchmark_sampling_str.extend(describe_variable(mv, True))
377
+ benchmark_sampling_str.append("\nMeta Variables:")
378
+ benchmark_sampling_str.append(f" run date: {self.run_date}")
379
+ if self.run_tag:
380
+ benchmark_sampling_str.append(f" run tag: {self.run_tag}")
381
+ if self.level is not None:
382
+ benchmark_sampling_str.append(f" bench level: {self.level}")
383
+ benchmark_sampling_str.append(f" use_cache: {self.use_cache}")
384
+ benchmark_sampling_str.append(f" use_sample_cache: {self.use_sample_cache}")
385
+ benchmark_sampling_str.append(f" only_hash_tag: {self.only_hash_tag}")
386
+ benchmark_sampling_str.append(f" parallel: {self.executor}")
387
+
388
+ for mv in self.meta_vars:
389
+ benchmark_sampling_str.extend(describe_variable(mv, True))
397
390
 
398
391
  benchmark_sampling_str.append("```")
399
392
 
@@ -15,9 +15,11 @@ from bencher.results.bench_result_base import ReduceType
15
15
  from bencher.plotting.plot_filter import PlotFilter, VarRange
16
16
  from bencher.variables.results import ResultVar, ResultImage, ResultVideo
17
17
 
18
-
19
18
  hv.extension("bokeh", "plotly")
20
19
 
20
+ # Flag to enable or disable tap tool functionality in visualizations
21
+ use_tap = True
22
+
21
23
 
22
24
  class HoloviewResult(PanelResult):
23
25
  @staticmethod
@@ -240,7 +242,7 @@ class HoloviewResult(PanelResult):
240
242
  def result_var_to_container(self, result_var):
241
243
  if isinstance(result_var, ResultImage):
242
244
  return pn.pane.PNG
243
- return pn.pane.Video if isinstance(result_var, ResultVideo) else pn.pane.panel
245
+ return pn.pane.Video if isinstance(result_var, ResultVideo) else pn.Column
244
246
 
245
247
  def setup_results_and_containers(self, result_var_plots, container, **kwargs):
246
248
  result_var_plots = listify(result_var_plots)
@@ -303,6 +305,7 @@ class HoloviewResult(PanelResult):
303
305
  val = ds.sel(**kdims)
304
306
  item = self.zero_dim_da_to_val(val)
305
307
  title.object = "Selected: " + ", ".join([f"{k}:{v}" for k, v in kdims.items()])
308
+
306
309
  cont.object = item
307
310
  if hasattr(cont, "autoplay"): # container is a video, set to autoplay
308
311
  cont.paused = False
@@ -46,7 +46,7 @@ class StringSweep(SweepSelector):
46
46
  def __init__(
47
47
  self,
48
48
  string_list: List[str],
49
- units: str = "",
49
+ units: str = "ul",
50
50
  samples: int = None,
51
51
  **params,
52
52
  ):
@@ -65,7 +65,7 @@ class EnumSweep(SweepSelector):
65
65
 
66
66
  __slots__ = shared_slots
67
67
 
68
- def __init__(self, enum_type: Enum | List[Enum], units=" ", samples=None, **params):
68
+ def __init__(self, enum_type: Enum | List[Enum], units="ul", samples=None, **params):
69
69
  # The enum can either be an Enum type or a list of enums
70
70
  list_of_enums = isinstance(enum_type, list)
71
71
  selector_list = enum_type if list_of_enums else list(enum_type)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "holobench"
3
- version = "1.17.0"
3
+ version = "1.18.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"
@@ -14,13 +14,13 @@ dependencies = [
14
14
  "holoviews>=1.15,<=1.18.3",
15
15
  "numpy>=1.0,<=1.26.4",
16
16
  "param>=1.13.0,<=2.1.0",
17
- "hvplot>=0.8,<=0.9.2",
17
+ "hvplot>=0.8,<=0.10.0",
18
18
  "matplotlib>=3.6.3,<=3.8.4",
19
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
- "xarray>=2023.7,<=2024.3.0",
23
- "plotly>=5.15,<=5.21.0",
22
+ "xarray>=2023.7,<=2024.5.0",
23
+ "plotly>=5.15,<=5.22.0",
24
24
  "sortedcontainers>=2.4,<=2.4",
25
25
  "pandas>=2.0,<=2.2.2",
26
26
  "strenum>=0.4.0,<=0.4.15",
File without changes
File without changes
File without changes