Skip to content

Commit 7c98c95

Browse files
committed
fix: don't add basement to the stratigraphic column made from dictionary
1 parent 04fb65f commit 7c98c95

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

LoopStructural/modelling/core/geological_model.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,14 +577,17 @@ def set_stratigraphic_column(self, stratigraphic_column, cmap="tab20"):
577577
}
578578
579579
"""
580-
self.stratigraphic_column.clear()
580+
self.stratigraphic_column.clear(basement=False)
581581
# if the colour for a unit hasn't been specified we can just sample from
582582
# a colour map e.g. tab20
583583
logger.info("Adding stratigraphic column to model")
584584
DeprecationWarning(
585585
"set_stratigraphic_column is deprecated, use model.stratigraphic_column.add_units instead"
586586
)
587587
for i, g in enumerate(stratigraphic_column.keys()):
588+
if g == 'faults':
589+
logger.info('Not adding faults to stratigraphic column')
590+
continue
588591
for u in stratigraphic_column[g].keys():
589592
thickness = 0
590593
if "min" in stratigraphic_column[g][u] and "max" in stratigraphic_column[g][u]:
@@ -606,7 +609,7 @@ def set_stratigraphic_column(self, stratigraphic_column, cmap="tab20"):
606609
self.stratigraphic_column.add_unconformity(
607610
name=''.join([g, 'unconformity']),
608611
)
609-
self.stratigraphic_column.group_mapping[f'Group_{i+1}'] = g
612+
self.stratigraphic_column.group_mapping[f'Group_{i}'] = g
610613

611614
def create_and_add_foliation(
612615
self,

0 commit comments

Comments
 (0)