Skip to content

Commit 35cd5e6

Browse files
committed
fix: increment random colour for stratigraphic colour cmap
1 parent 9d77f9e commit 35cd5e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LoopStructural/modelling/core/geological_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ def set_stratigraphic_column(self, stratigraphic_column, cmap="tab20"):
649649
for g in stratigraphic_column.keys():
650650
for u in stratigraphic_column[g].keys():
651651
stratigraphic_column[g][u]["colour"] = cmap_colours[ci, :]
652-
652+
ci += 1
653653
self.stratigraphic_column = stratigraphic_column
654654

655655
def create_and_add_foliation(
@@ -1809,7 +1809,7 @@ def get_block_model(self, name='block model'):
18091809
grid = self.bounding_box.structured_grid(name=name)
18101810

18111811
grid.cell_properties['stratigraphy'] = self.evaluate_model(
1812-
self.bounding_box.cell_centers(), scale=False
1812+
self.rescale(self.bounding_box.cell_centers())
18131813
)
18141814
return grid, self.stratigraphic_ids()
18151815

0 commit comments

Comments
 (0)