Skip to content

Commit

Permalink
fix: check if strat col for evaluate model
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlangrose committed Jun 6, 2024
1 parent 3274299 commit 83f5e86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions LoopStructural/modelling/core/geological_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1539,6 +1539,9 @@ def evaluate_model(self, xyz: np.ndarray, scale: bool = True) -> np.ndarray:
strat_id = np.zeros(xyz.shape[0], dtype=int)
# set strat id to -1 to identify which areas of the model aren't covered
strat_id[:] = -1
if self.stratigraphic_column is None:
logger.warning("No stratigraphic column defined")
return strat_id
for group in reversed(self.stratigraphic_column.keys()):
if group == "faults":
continue
Expand Down

0 comments on commit 83f5e86

Please sign in to comment.