holobench 1.42.0__py3-none-any.whl → 1.44.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 +3 -58
- {holobench-1.42.0.dist-info → holobench-1.44.0.dist-info}/METADATA +20 -20
- {holobench-1.42.0.dist-info → holobench-1.44.0.dist-info}/RECORD +5 -5
- {holobench-1.42.0.dist-info → holobench-1.44.0.dist-info}/WHEEL +0 -0
- {holobench-1.42.0.dist-info → holobench-1.44.0.dist-info}/licenses/LICENSE +0 -0
bencher/bencher.py
CHANGED
@@ -52,8 +52,8 @@ def set_xarray_multidim(
|
|
52
52
|
) -> xr.DataArray:
|
53
53
|
"""Set a value in a multi-dimensional xarray at the specified index position.
|
54
54
|
|
55
|
-
This function sets a value in an N-dimensional xarray using
|
56
|
-
|
55
|
+
This function sets a value in an N-dimensional xarray using dynamic indexing
|
56
|
+
that works for any number of dimensions.
|
57
57
|
|
58
58
|
Args:
|
59
59
|
data_array (xr.DataArray): The data array to modify
|
@@ -63,62 +63,7 @@ def set_xarray_multidim(
|
|
63
63
|
Returns:
|
64
64
|
xr.DataArray: The modified data array
|
65
65
|
"""
|
66
|
-
|
67
|
-
case 1:
|
68
|
-
data_array[index_tuple[0]] = value
|
69
|
-
case 2:
|
70
|
-
data_array[index_tuple[0], index_tuple[1]] = value
|
71
|
-
case 3:
|
72
|
-
data_array[index_tuple[0], index_tuple[1], index_tuple[2]] = value
|
73
|
-
case 4:
|
74
|
-
data_array[index_tuple[0], index_tuple[1], index_tuple[2], index_tuple[3]] = value
|
75
|
-
case 5:
|
76
|
-
data_array[
|
77
|
-
index_tuple[0], index_tuple[1], index_tuple[2], index_tuple[3], index_tuple[4]
|
78
|
-
] = value
|
79
|
-
case 6:
|
80
|
-
data_array[
|
81
|
-
index_tuple[0],
|
82
|
-
index_tuple[1],
|
83
|
-
index_tuple[2],
|
84
|
-
index_tuple[3],
|
85
|
-
index_tuple[4],
|
86
|
-
index_tuple[5],
|
87
|
-
] = value
|
88
|
-
case 7:
|
89
|
-
data_array[
|
90
|
-
index_tuple[0],
|
91
|
-
index_tuple[1],
|
92
|
-
index_tuple[2],
|
93
|
-
index_tuple[3],
|
94
|
-
index_tuple[4],
|
95
|
-
index_tuple[5],
|
96
|
-
index_tuple[6],
|
97
|
-
] = value
|
98
|
-
case 8:
|
99
|
-
data_array[
|
100
|
-
index_tuple[0],
|
101
|
-
index_tuple[1],
|
102
|
-
index_tuple[2],
|
103
|
-
index_tuple[3],
|
104
|
-
index_tuple[4],
|
105
|
-
index_tuple[5],
|
106
|
-
index_tuple[6],
|
107
|
-
index_tuple[7],
|
108
|
-
] = value
|
109
|
-
case 9:
|
110
|
-
data_array[
|
111
|
-
index_tuple[0],
|
112
|
-
index_tuple[1],
|
113
|
-
index_tuple[2],
|
114
|
-
index_tuple[3],
|
115
|
-
index_tuple[4],
|
116
|
-
index_tuple[5],
|
117
|
-
index_tuple[6],
|
118
|
-
index_tuple[7],
|
119
|
-
index_tuple[8],
|
120
|
-
] = value
|
121
|
-
|
66
|
+
data_array[index_tuple] = value
|
122
67
|
return data_array
|
123
68
|
|
124
69
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: holobench
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.44.0
|
4
4
|
Summary: A package for benchmarking the performance of arbitrary functions
|
5
5
|
Project-URL: Repository, https://github.com/blooop/bencher
|
6
6
|
Project-URL: Home, https://github.com/blooop/bencher
|
@@ -8,37 +8,37 @@ Project-URL: Documentation, https://bencher.readthedocs.io/en/latest/
|
|
8
8
|
Author-email: Austin Gregg-Smith <blooop@gmail.com>
|
9
9
|
License-Expression: MIT
|
10
10
|
License-File: LICENSE
|
11
|
-
Requires-Python: <3.
|
11
|
+
Requires-Python: <3.14,>=3.10
|
12
12
|
Requires-Dist: diskcache<=5.6.3,>=5.6
|
13
|
-
Requires-Dist: holoviews<=1.20.
|
14
|
-
Requires-Dist: hvplot<=0.
|
15
|
-
Requires-Dist: moviepy<=2.1
|
13
|
+
Requires-Dist: holoviews<=1.20.2,>=1.15
|
14
|
+
Requires-Dist: hvplot<=0.11.3,>=0.11.3
|
15
|
+
Requires-Dist: moviepy<=2.2.1,>=2.1.2
|
16
16
|
Requires-Dist: numpy<=2.2.6,>=1.0
|
17
|
-
Requires-Dist: optuna<=4.
|
18
|
-
Requires-Dist: pandas<=2.
|
19
|
-
Requires-Dist: panel<=1.7.
|
20
|
-
Requires-Dist: param<=2.2.
|
21
|
-
Requires-Dist: plotly<=6.
|
22
|
-
Requires-Dist: scikit-learn<=1.
|
17
|
+
Requires-Dist: optuna<=4.4.0,>=3.2
|
18
|
+
Requires-Dist: pandas<=2.3.0,>=2.0
|
19
|
+
Requires-Dist: panel<=1.7.1,>=1.3.6
|
20
|
+
Requires-Dist: param<=2.2.1,>=1.13.0
|
21
|
+
Requires-Dist: plotly<=6.1.2,>=5.15
|
22
|
+
Requires-Dist: scikit-learn<=1.7.0,>=1.2
|
23
23
|
Requires-Dist: strenum<=0.4.15,>=0.4.0
|
24
|
-
Requires-Dist: xarray<=2025.
|
24
|
+
Requires-Dist: xarray<=2025.6.1,>=2023.7
|
25
25
|
Provides-Extra: rerun
|
26
26
|
Requires-Dist: flask; extra == 'rerun'
|
27
27
|
Requires-Dist: flask-cors; extra == 'rerun'
|
28
28
|
Requires-Dist: rerun-notebook; extra == 'rerun'
|
29
|
-
Requires-Dist: rerun-sdk==0.
|
29
|
+
Requires-Dist: rerun-sdk==0.23.3; extra == 'rerun'
|
30
30
|
Provides-Extra: test
|
31
|
-
Requires-Dist: coverage<=7.
|
32
|
-
Requires-Dist: hypothesis<=6.
|
31
|
+
Requires-Dist: coverage<=7.9.1,>=7.5.4; extra == 'test'
|
32
|
+
Requires-Dist: hypothesis<=6.135.14,>=6.104.2; extra == 'test'
|
33
33
|
Requires-Dist: ipykernel; extra == 'test'
|
34
34
|
Requires-Dist: jupyter-bokeh; extra == 'test'
|
35
35
|
Requires-Dist: nbformat; extra == 'test'
|
36
36
|
Requires-Dist: pip; extra == 'test'
|
37
37
|
Requires-Dist: pre-commit<=4.2.0; extra == 'test'
|
38
38
|
Requires-Dist: pylint<=3.3.7,>=3.2.5; extra == 'test'
|
39
|
-
Requires-Dist: pytest-cov<=6.
|
40
|
-
Requires-Dist: pytest<=8.
|
41
|
-
Requires-Dist: ruff<=0.
|
39
|
+
Requires-Dist: pytest-cov<=6.2.1,>=4.1; extra == 'test'
|
40
|
+
Requires-Dist: pytest<=8.4.1,>=7.4; extra == 'test'
|
41
|
+
Requires-Dist: ruff<=0.12.0,>=0.5.0; extra == 'test'
|
42
42
|
Description-Content-Type: text/markdown
|
43
43
|
|
44
44
|
# Bencher
|
@@ -53,7 +53,7 @@ Description-Content-Type: text/markdown
|
|
53
53
|
[](https://pypi.org/project/holobench/)
|
54
54
|
[](https://pypistats.org/packages/holobench)
|
55
55
|
[](https://opensource.org/license/mit/)
|
56
|
-
[](https://www.python.org/downloads/)
|
56
|
+
[](https://www.python.org/downloads/)
|
57
57
|
[](https://pixi.sh)
|
58
58
|
|
59
59
|
## Install
|
@@ -130,4 +130,4 @@ Start with example_simple_float.py and explore other examples based on your data
|
|
130
130
|
- [Examples Documentation](https://bencher.readthedocs.io/reference/index.html)
|
131
131
|
- [API documentation](https://bencher.readthedocs.io/autoapi/bencher/index.html)
|
132
132
|
|
133
|
-
More documentation is needed for the examples and general workflow.
|
133
|
+
More documentation is needed for the examples and general workflow.
|
@@ -4,7 +4,7 @@ bencher/bench_cfg.py,sha256=tm9S9l6YG_NQUQaLqT6fCL9Jfb0tKiYri9fDWuPgL8w,29256
|
|
4
4
|
bencher/bench_plot_server.py,sha256=nvGTr981XgWELqV7yID91j6V1UIPGtKilzxHcNWaZ6Q,4196
|
5
5
|
bencher/bench_report.py,sha256=QejKL1jgGmx6TGZ_RIiyQ6KEqF8bRQ9IaA4ync81S8E,7511
|
6
6
|
bencher/bench_runner.py,sha256=3ZrfUU01WoHMRodfTQwkYFPA_ZRcZg5XTIagz317bbs,11088
|
7
|
-
bencher/bencher.py,sha256=
|
7
|
+
bencher/bencher.py,sha256=kZbPJfJ5aU5Pw_NLb9rexU_8izWJKRaix9zKayxhGUE,50493
|
8
8
|
bencher/caching.py,sha256=RYvh6FLcYlMrfYcbkK5k8ZnT4lP2g5klUgo1oPfXhxg,1565
|
9
9
|
bencher/class_enum.py,sha256=9ewhDzRDGwVg9VvasZzyiZEKLEPKzE7yBo8PqhUixfg,3492
|
10
10
|
bencher/flask_server.py,sha256=uMhMaySUki5StC-r_TXb4KTVqAiffyqfH7UzQidFqSw,831
|
@@ -141,7 +141,7 @@ bencher/variables/results.py,sha256=Wq14e8rAj5mcK22325wcaeTMjgZ6JuduqceAHItHFY8,
|
|
141
141
|
bencher/variables/sweep_base.py,sha256=gfEhKvsb16ZLbe38JewZqu0AMOHpsqwRbZbt-aCg9Bc,6258
|
142
142
|
bencher/variables/time.py,sha256=zcRS5p4ZkFjMta9nZMEuWv86rLnPkUSqyO69QwI5q3E,3142
|
143
143
|
resource/bencher,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
144
|
-
holobench-1.
|
145
|
-
holobench-1.
|
146
|
-
holobench-1.
|
147
|
-
holobench-1.
|
144
|
+
holobench-1.44.0.dist-info/METADATA,sha256=wfIcY47QFQxsqj2lljcYCs5FZd7r_k2NEycXGXzHnPM,6689
|
145
|
+
holobench-1.44.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
146
|
+
holobench-1.44.0.dist-info/licenses/LICENSE,sha256=dSHXTdRY4Y7qGFMv63UksV700iff7iE-p7GGs6Sbnvo,1065
|
147
|
+
holobench-1.44.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|