Skip to content

Commit be84aeb

Browse files
committed
Fixed critical curve tests so they now use irregular grid class
1 parent 72c99b5 commit be84aeb

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

autoarray/structures/grids.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,20 @@ def __array_finalize__(self, obj):
599599
if hasattr(obj, "interpolator"):
600600
self.interpolator = obj.interpolator
601601

602+
@property
603+
def mask(self):
604+
605+
class IrregularMask(object):
606+
607+
def __init__(self, sub_shape_1d):
608+
609+
self.sub_shape_1d = sub_shape_1d
610+
611+
def grid_from_sub_grid_1d(self, sub_grid_1d):
612+
return IrregularGrid(grid=sub_grid_1d)
613+
614+
return IrregularMask(sub_shape_1d=self.shape[0])
615+
602616
@property
603617
def mapping(self):
604618

0 commit comments

Comments
 (0)