Skip to content

Commit 58528a9

Browse files
committed
⚰️ Remove unneeded secondary grid structure check
1 parent b3503c5 commit 58528a9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

simvue/api/objects/grids.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ def check_ordered_array(
4040
if isinstance(axis_ticks, numpy.ndarray):
4141
axis_ticks = axis_ticks.tolist()
4242
for i, _array in enumerate(axis_ticks):
43-
if not isinstance(_array[0], float):
44-
raise ValueError("Ordering can only be checked on a 1D array")
4543
_array = numpy.array(_array)
4644
if not numpy.all(numpy.sort(_array) == _array) or numpy.all(
4745
reversed(numpy.sort(_array)) == _array

0 commit comments

Comments
 (0)