Skip to content

Commit 563127c

Browse files
committed
[FEAT] Add root_output property to access root octree levels
1 parent c3c0480 commit 563127c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

gempy_engine/core/data/solutions.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ def block_solution_resolution(self) -> np.ndarray:
6363
raise ValueError("Block solution type not recognized.")
6464

6565
return resolution
66+
67+
@property
68+
def root_output(self) -> OctreeLevel:
69+
"""Get the root output where you can find all the grids other than the octree grid, and lvl0 of the octree."""
70+
if not self.octrees_output:
71+
raise ValueError("No octree levels available.")
72+
return self.octrees_output[0]
6673

6774
@property
6875
def raw_arrays(self) -> RawArraysSolution:

0 commit comments

Comments
 (0)