We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 418aa55 commit 0006ff8Copy full SHA for 0006ff8
1 file changed
cubed/core/rechunk.py
@@ -74,7 +74,8 @@ def _multspace(start, stop, num):
74
vals = np.geomspace(start, stop, num + 2)
75
vint = 1
76
for v in vals:
77
- vint = floor(v / vint) * vint
+ # next value is int multiple closest to geomspace value (rounded down)
78
+ vint = max(floor(v / vint) * vint, 1)
79
yield vint
80
81
0 commit comments