Skip to content

Commit 83f5e86

Browse files
committed
fix: check if strat col for evaluate model
1 parent 3274299 commit 83f5e86

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

LoopStructural/modelling/core/geological_model.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,6 +1539,9 @@ def evaluate_model(self, xyz: np.ndarray, scale: bool = True) -> np.ndarray:
15391539
strat_id = np.zeros(xyz.shape[0], dtype=int)
15401540
# set strat id to -1 to identify which areas of the model aren't covered
15411541
strat_id[:] = -1
1542+
if self.stratigraphic_column is None:
1543+
logger.warning("No stratigraphic column defined")
1544+
return strat_id
15421545
for group in reversed(self.stratigraphic_column.keys()):
15431546
if group == "faults":
15441547
continue

0 commit comments

Comments
 (0)