From e77d58cc11b97ca2f78512fbc29a7056d59bc81e Mon Sep 17 00:00:00 2001 From: Lachlan Grose Date: Thu, 6 Jun 2024 14:52:21 +1000 Subject: [PATCH] fix: return no strat ids when strat column not defined --- LoopStructural/modelling/core/geological_model.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LoopStructural/modelling/core/geological_model.py b/LoopStructural/modelling/core/geological_model.py index dfa35d06..1d5fb620 100644 --- a/LoopStructural/modelling/core/geological_model.py +++ b/LoopStructural/modelling/core/geological_model.py @@ -1759,6 +1759,9 @@ def stratigraphic_ids(self): list of unique stratigraphic ids, featurename, unit name and min and max scalar values """ ids = [] + if self.stratigraphic_column is None: + logger.warning('No stratigraphic column defined') + return ids for group in self.stratigraphic_column.keys(): if group == "faults": continue