We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64e527b commit 10535e9Copy full SHA for 10535e9
LoopStructural/interpolators/supports/_3d_base_structured.py
@@ -150,7 +150,12 @@ def maximum(self, maximum):
150
maximum = np.array(maximum, dtype=float)
151
length = maximum - self.origin
152
length /= self.step_vector
153
- self._nsteps = np.ceil(length).astype(int) + 1
+ self._nsteps = np.ceil(length).astype(np.int64) + 1
154
+ if np.any(~(self._nsteps > 0)):
155
+ logger.error(
156
+ f"Cannot resize the interpolation support. The proposed number of steps is {self._nsteps}, these must be all > 0"
157
+ )
158
+ raise ValueError("Cannot resize the interpolation support.")
159
self.onGeometryChange()
160
161
@property
0 commit comments