Skip to content

Commit

Permalink
fix: 🐛 stratigraphic column was not covering scalar field range.
Browse files Browse the repository at this point in the history
Change to set min/max to -inf/inf
  • Loading branch information
Lachlan Grose committed Mar 2, 2022
1 parent 5002a8a commit 990e0f4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion LoopStructural/modelling/input/process_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,19 @@ def stratigraphic_column(self):
val = self._stratigraphic_value()
for name, sg in self._stratigraphic_order:
stratigraphic_column[name] = {}
for g in reversed(sg):
for i, g in enumerate(reversed(sg)):
if g in self.thicknesses:
stratigraphic_column[name][g] = {
"max": val[g] + self.thicknesses[g],
"min": val[g],
"id": unit_id,
"colour": self.colours[g],
}
if i==0:
stratigraphic_column[name][g]["min"] = -np.inf
if i==len(sg)-1:
stratigraphic_column[name][g]["max"] = np.inf

unit_id += 1
# add faults into the column
if self.fault_properties is not None:
Expand Down

0 comments on commit 990e0f4

Please sign in to comment.