File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,26 @@ def __init__(
36
36
nsteps : Optional[np.ndarray], optional
37
37
_description_, by default None
38
38
"""
39
+ if origin is not None and len (origin ) != dimensions :
40
+ logger .warning (
41
+ f"Origin has { len (origin )} dimensions but bounding box has { dimensions } "
42
+ )
43
+ raise LoopValueError ("Origin has incorrect number of dimensions" )
44
+ if maximum is not None and len (maximum ) != dimensions :
45
+ logger .warning (
46
+ f"Maximum has { len (maximum )} dimensions but bounding box has { dimensions } "
47
+ )
48
+ raise LoopValueError ("Maximum has incorrect number of dimensions" )
49
+ if global_origin is not None and len (global_origin ) != dimensions :
50
+ logger .warning (
51
+ f"Global origin has { len (global_origin )} dimensions but bounding box has { dimensions } "
52
+ )
53
+ raise LoopValueError ("Global origin has incorrect number of dimensions" )
54
+ if nsteps is not None and len (nsteps ) != dimensions :
55
+ logger .warning (
56
+ f"Nsteps has { len (nsteps )} dimensions but bounding box has { dimensions } "
57
+ )
58
+ raise LoopValueError ("Nsteps has incorrect number of dimensions" )
39
59
# reproject relative to the global origin, if origin is not provided.
40
60
# we want the local coordinates to start at 0
41
61
# otherwise uses provided origin. This is useful for having multiple bounding boxes rela
You can’t perform that action at this time.
0 commit comments