holobench 1.31.0__tar.gz → 1.32.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 (100) hide show
  1. {holobench-1.31.0 → holobench-1.32.0}/PKG-INFO +9 -8
  2. {holobench-1.31.0 → holobench-1.32.0}/bencher/__init__.py +1 -1
  3. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_rerun.py +1 -1
  4. {holobench-1.31.0 → holobench-1.32.0}/bencher/utils_rerun.py +2 -2
  5. {holobench-1.31.0 → holobench-1.32.0}/pyproject.toml +21 -17
  6. {holobench-1.31.0 → holobench-1.32.0}/.gitignore +0 -0
  7. {holobench-1.31.0 → holobench-1.32.0}/LICENSE +0 -0
  8. {holobench-1.31.0 → holobench-1.32.0}/README.md +0 -0
  9. {holobench-1.31.0 → holobench-1.32.0}/bencher/bench_cfg.py +0 -0
  10. {holobench-1.31.0 → holobench-1.32.0}/bencher/bench_plot_server.py +0 -0
  11. {holobench-1.31.0 → holobench-1.32.0}/bencher/bench_report.py +0 -0
  12. {holobench-1.31.0 → holobench-1.32.0}/bencher/bench_runner.py +0 -0
  13. {holobench-1.31.0 → holobench-1.32.0}/bencher/bencher.py +0 -0
  14. {holobench-1.31.0 → holobench-1.32.0}/bencher/caching.py +0 -0
  15. {holobench-1.31.0 → holobench-1.32.0}/bencher/class_enum.py +0 -0
  16. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/__init__.py +0 -0
  17. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/benchmark_data.py +0 -0
  18. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_all.py +0 -0
  19. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_categorical.py +0 -0
  20. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_composable_container.py +0 -0
  21. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_composable_container2.py +0 -0
  22. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_consts.py +0 -0
  23. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_custom_sweep.py +0 -0
  24. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_custom_sweep2.py +0 -0
  25. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_dataframe.py +0 -0
  26. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_docs.py +0 -0
  27. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_filepath.py +0 -0
  28. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_float3D.py +0 -0
  29. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_float_cat.py +0 -0
  30. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_floats.py +0 -0
  31. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_floats2D.py +0 -0
  32. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_holosweep.py +0 -0
  33. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_holosweep_objects.py +0 -0
  34. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_holosweep_tap.py +0 -0
  35. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_image.py +0 -0
  36. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_image1.py +0 -0
  37. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_levels.py +0 -0
  38. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_levels2.py +0 -0
  39. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_pareto.py +0 -0
  40. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_rerun2.py +0 -0
  41. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_sample_cache.py +0 -0
  42. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_sample_cache_context.py +0 -0
  43. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_simple.py +0 -0
  44. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_simple_bool.py +0 -0
  45. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_simple_cat.py +0 -0
  46. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_simple_float.py +0 -0
  47. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_simple_float2d.py +0 -0
  48. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_strings.py +0 -0
  49. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_time_event.py +0 -0
  50. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_video.py +0 -0
  51. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/example_workflow.py +0 -0
  52. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/experimental/example_bokeh_plotly.py +0 -0
  53. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/experimental/example_hover_ex.py +0 -0
  54. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/experimental/example_hvplot_explorer.py +0 -0
  55. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/experimental/example_interactive.py +0 -0
  56. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/experimental/example_streamnd.py +0 -0
  57. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/experimental/example_streams.py +0 -0
  58. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/experimental/example_template.py +0 -0
  59. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/experimental/example_updates.py +0 -0
  60. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/experimental/example_vector.py +0 -0
  61. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/meta/example_meta.py +0 -0
  62. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/meta/example_meta_cat.py +0 -0
  63. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/meta/example_meta_float.py +0 -0
  64. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/meta/example_meta_levels.py +0 -0
  65. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/optuna/example_optuna.py +0 -0
  66. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/shelved/example_float2D_scatter.py +0 -0
  67. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/shelved/example_float3D_cone.py +0 -0
  68. {holobench-1.31.0 → holobench-1.32.0}/bencher/example/shelved/example_kwargs.py +0 -0
  69. {holobench-1.31.0 → holobench-1.32.0}/bencher/flask_server.py +0 -0
  70. {holobench-1.31.0 → holobench-1.32.0}/bencher/job.py +0 -0
  71. {holobench-1.31.0 → holobench-1.32.0}/bencher/optuna_conversions.py +0 -0
  72. {holobench-1.31.0 → holobench-1.32.0}/bencher/plotting/__init__.py +0 -0
  73. {holobench-1.31.0 → holobench-1.32.0}/bencher/plotting/plot_filter.py +0 -0
  74. {holobench-1.31.0 → holobench-1.32.0}/bencher/plotting/plt_cnt_cfg.py +0 -0
  75. {holobench-1.31.0 → holobench-1.32.0}/bencher/results/__init__.py +0 -0
  76. {holobench-1.31.0 → holobench-1.32.0}/bencher/results/bench_result.py +0 -0
  77. {holobench-1.31.0 → holobench-1.32.0}/bencher/results/bench_result_base.py +0 -0
  78. {holobench-1.31.0 → holobench-1.32.0}/bencher/results/composable_container/__init__.py +0 -0
  79. {holobench-1.31.0 → holobench-1.32.0}/bencher/results/composable_container/composable_container_base.py +0 -0
  80. {holobench-1.31.0 → holobench-1.32.0}/bencher/results/composable_container/composable_container_dataframe.py +0 -0
  81. {holobench-1.31.0 → holobench-1.32.0}/bencher/results/composable_container/composable_container_panel.py +0 -0
  82. {holobench-1.31.0 → holobench-1.32.0}/bencher/results/composable_container/composable_container_video.py +0 -0
  83. {holobench-1.31.0 → holobench-1.32.0}/bencher/results/dataset_result.py +0 -0
  84. {holobench-1.31.0 → holobench-1.32.0}/bencher/results/float_formatter.py +0 -0
  85. {holobench-1.31.0 → holobench-1.32.0}/bencher/results/holoview_result.py +0 -0
  86. {holobench-1.31.0 → holobench-1.32.0}/bencher/results/optuna_result.py +0 -0
  87. {holobench-1.31.0 → holobench-1.32.0}/bencher/results/panel_result.py +0 -0
  88. {holobench-1.31.0 → holobench-1.32.0}/bencher/results/plotly_result.py +0 -0
  89. {holobench-1.31.0 → holobench-1.32.0}/bencher/results/video_result.py +0 -0
  90. {holobench-1.31.0 → holobench-1.32.0}/bencher/results/video_summary.py +0 -0
  91. {holobench-1.31.0 → holobench-1.32.0}/bencher/utils.py +0 -0
  92. {holobench-1.31.0 → holobench-1.32.0}/bencher/variables/__init__.py +0 -0
  93. {holobench-1.31.0 → holobench-1.32.0}/bencher/variables/inputs.py +0 -0
  94. {holobench-1.31.0 → holobench-1.32.0}/bencher/variables/parametrised_sweep.py +0 -0
  95. {holobench-1.31.0 → holobench-1.32.0}/bencher/variables/results.py +0 -0
  96. {holobench-1.31.0 → holobench-1.32.0}/bencher/variables/sweep_base.py +0 -0
  97. {holobench-1.31.0 → holobench-1.32.0}/bencher/variables/time.py +0 -0
  98. {holobench-1.31.0 → holobench-1.32.0}/bencher/video_writer.py +0 -0
  99. {holobench-1.31.0 → holobench-1.32.0}/bencher/worker_job.py +0 -0
  100. {holobench-1.31.0 → holobench-1.32.0}/resource/bencher +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: holobench
3
- Version: 1.31.0
3
+ Version: 1.32.0
4
4
  Summary: A package for benchmarking the performance of arbitrary functions
5
5
  Project-URL: Repository, https://github.com/dyson-ai/bencher
6
6
  Project-URL: Home, https://github.com/dyson-ai/bencher
@@ -9,8 +9,6 @@ Author-email: Austin Gregg-Smith <blooop@gmail.com>
9
9
  License: MIT
10
10
  Requires-Python: <3.13,>=3.10
11
11
  Requires-Dist: diskcache<=5.6.3,>=5.6
12
- Requires-Dist: flask
13
- Requires-Dist: flask-cors
14
12
  Requires-Dist: holoviews<=1.19.1,>=1.15
15
13
  Requires-Dist: hvplot<=0.10.0,>=0.8
16
14
  Requires-Dist: matplotlib<=3.9.2,>=3.6.3
@@ -21,22 +19,25 @@ Requires-Dist: pandas<=2.2.2,>=2.0
21
19
  Requires-Dist: panel<=1.4.5,>=1.3.6
22
20
  Requires-Dist: param<=2.1.1,>=1.13.0
23
21
  Requires-Dist: plotly<=5.24.1,>=5.15
24
- Requires-Dist: rerun-notebook
25
- Requires-Dist: rerun-sdk==0.20.1
26
22
  Requires-Dist: scikit-learn<=1.5.1,>=1.2
27
23
  Requires-Dist: scoop<=0.7.2.0,>=0.7.0
28
24
  Requires-Dist: sortedcontainers<=2.4,>=2.4
29
25
  Requires-Dist: str2bool<=1.1,>=1.1
30
26
  Requires-Dist: strenum<=0.4.15,>=0.4.0
31
27
  Requires-Dist: xarray<=2024.7.0,>=2023.7
28
+ Provides-Extra: rerun
29
+ Requires-Dist: flask; extra == 'rerun'
30
+ Requires-Dist: flask-cors; extra == 'rerun'
31
+ Requires-Dist: rerun-notebook; extra == 'rerun'
32
+ Requires-Dist: rerun-sdk==0.20.1; extra == 'rerun'
32
33
  Provides-Extra: test
33
- Requires-Dist: coverage<=7.6.7,>=7.5.4; extra == 'test'
34
- Requires-Dist: hypothesis<=6.119.1,>=6.104.2; extra == 'test'
34
+ Requires-Dist: coverage<=7.6.8,>=7.5.4; extra == 'test'
35
+ Requires-Dist: hypothesis<=6.122.0,>=6.104.2; extra == 'test'
35
36
  Requires-Dist: pre-commit<=4.0.1; extra == 'test'
36
37
  Requires-Dist: pylint<=3.3.1,>=3.2.5; extra == 'test'
37
38
  Requires-Dist: pytest-cov<=6.0.0,>=4.1; extra == 'test'
38
39
  Requires-Dist: pytest<=8.3.3,>=7.4; extra == 'test'
39
- Requires-Dist: ruff<=0.7.4,>=0.5.0; extra == 'test'
40
+ Requires-Dist: ruff<=0.8.1,>=0.5.0; extra == 'test'
40
41
  Description-Content-Type: text/markdown
41
42
 
42
43
  # Bencher
@@ -56,7 +56,7 @@ from .utils import (
56
56
  publish_file,
57
57
  github_content,
58
58
  )
59
- from .utils_rerun import publish_and_view_rrd, rrd_to_pane, record_rerun_session
59
+ from .utils_rerun import publish_and_view_rrd, rrd_to_pane, capture_rerun_window
60
60
 
61
61
  from .plotting.plot_filter import VarRange, PlotFilter
62
62
  from .variables.parametrised_sweep import ParametrizedSweep
@@ -11,7 +11,7 @@ class SweepRerun(bch.ParametrizedSweep):
11
11
 
12
12
  def __call__(self, **kwargs):
13
13
  self.update_params_from_kwargs(**kwargs)
14
- self.out_pane = bch.record_rerun_session()
14
+ self.out_pane = bch.capture_rerun_window(width=300, height=300)
15
15
  rr.log("s1", rr.Boxes2D(half_sizes=[self.theta, 1]))
16
16
 
17
17
  return super().__call__(**kwargs)
@@ -34,8 +34,8 @@ def publish_and_view_rrd(
34
34
  return rrd_to_pane(publish_path, version=version)
35
35
 
36
36
 
37
- def record_rerun_session():
37
+ def capture_rerun_window(width: int = 500, height: int = 500):
38
38
  rrd_path = gen_rerun_data_path()
39
39
  rr.save(rrd_path)
40
40
  path = rrd_path.split("cachedir")[1]
41
- return rrd_to_pane(f"http://127.0.0.1:8001/{path}")
41
+ return rrd_to_pane(f"http://127.0.0.1:8001/{path}", width=width, height=height)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "holobench"
3
- version = "1.31.0"
3
+ version = "1.32.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"
@@ -27,13 +27,8 @@ dependencies = [
27
27
  "str2bool>=1.1,<=1.1",
28
28
  "scoop>=0.7.0,<=0.7.2.0",
29
29
  "moviepy-fix-codec",
30
- "rerun-sdk==0.20.1",
31
- "rerun-notebook",
32
- "flask",
33
- "flask-cors"
34
30
  ]
35
31
 
36
-
37
32
  [project.urls]
38
33
  Repository = "https://github.com/dyson-ai/bencher"
39
34
  Home = "https://github.com/dyson-ai/bencher"
@@ -62,12 +57,15 @@ test = [
62
57
  "pylint>=3.2.5,<=3.3.1",
63
58
  "pytest-cov>=4.1,<=6.0.0",
64
59
  "pytest>=7.4,<=8.3.3",
65
- "hypothesis>=6.104.2,<=6.119.1",
66
- "ruff>=0.5.0,<=0.7.4",
67
- "coverage>=7.5.4,<=7.6.7",
68
- "pre-commit<=4.0.1"
60
+ "hypothesis>=6.104.2,<=6.122.0",
61
+ "ruff>=0.5.0,<=0.8.1",
62
+ "coverage>=7.5.4,<=7.6.8",
63
+ "pre-commit<=4.0.1",
69
64
  ]
70
65
 
66
+ #adds support for embedding rerun windows (alpha)
67
+ rerun = ["rerun-sdk==0.20.1", "rerun-notebook", "flask", "flask-cors"]
68
+
71
69
  [build-system]
72
70
  requires = ["hatchling"]
73
71
  build-backend = "hatchling.build"
@@ -77,10 +75,10 @@ include = ["bencher"]
77
75
 
78
76
  # Environments
79
77
  [tool.pixi.environments]
80
- default = {features = ["test"], solve-group = "default" }
81
- py310 = ["py310","test"]
82
- py311 = ["py311","test"]
83
- py312 = ["py312","test"]
78
+ default = { features = ["test", "rerun"], solve-group = "default" }
79
+ py310 = ["py310", "test", "rerun"]
80
+ py311 = ["py311", "test", "rerun"]
81
+ py312 = ["py312", "test", "rerun"]
84
82
 
85
83
 
86
84
  [tool.pixi.tasks]
@@ -99,11 +97,17 @@ coverage-report = "coverage report -m"
99
97
  update-lock = "pixi update && git commit -a -m'update pixi.lock' || true"
100
98
  push = "git push"
101
99
  update-lock-push = { depends_on = ["update-lock", "push"] }
102
- fix = { depends_on = ["update-lock","pre-commit", "format", "ruff-lint"] }
100
+ fix = { depends_on = ["update-lock", "pre-commit", "format", "ruff-lint"] }
103
101
  fix-commit-push = { depends_on = ["fix", "commit-format", "update-lock-push"] }
104
102
  ci-no-cover = { depends_on = ["style", "test"] }
105
- ci = { depends_on = ["format","ruff-lint", "pylint", "coverage", "coverage-report"] }
106
- ci-push = {depends_on=["format","ruff-lint","update-lock","ci","push"]}
103
+ ci = { depends_on = [
104
+ "format",
105
+ "ruff-lint",
106
+ "pylint",
107
+ "coverage",
108
+ "coverage-report",
109
+ ] }
110
+ ci-push = { depends_on = ["format", "ruff-lint", "update-lock", "ci", "push"] }
107
111
  clear-pixi = "rm -rf .pixi pixi.lock"
108
112
  setup-git-merge-driver = "git config merge.ours.driver true"
109
113
  update-from-template-repo = "./scripts/update_from_template.sh"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes