Skip to content

Commit 9acde61

Browse files
committed
[CLN] Remove redundant octree level resolution check in grid initialization
1 parent 275fca4 commit 9acde61

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

gempy/core/data/grid.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,6 @@ def set_octree_grid(self, regular_grid: RegularGrid, evaluation_options: Evaluat
203203
if not np.all(regular_grid_resolution == regular_grid_resolution[0]):
204204
raise AttributeError('Octree resolution must be isotropic')
205205
octree_levels = int(np.log2(regular_grid_resolution[0]))
206-
# Check if octrree levels are the same
207-
if octree_levels != evaluation_options.number_octree_levels:
208-
raise AttributeError('Regular grid resolution does not match octree levels. Resolution must be 2^n')
209206

210207
self._octree_grid = regular_grid
211208
self.active_grids |= self.GridTypes.OCTREE

0 commit comments

Comments
 (0)