Skip to content

Commit 990e0f4

Browse files
author
Lachlan Grose
committed
fix: 🐛 stratigraphic column was not covering scalar field range.
Change to set min/max to -inf/inf
1 parent 5002a8a commit 990e0f4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

LoopStructural/modelling/input/process_data.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,19 @@ def stratigraphic_column(self):
133133
val = self._stratigraphic_value()
134134
for name, sg in self._stratigraphic_order:
135135
stratigraphic_column[name] = {}
136-
for g in reversed(sg):
136+
for i, g in enumerate(reversed(sg)):
137137
if g in self.thicknesses:
138138
stratigraphic_column[name][g] = {
139139
"max": val[g] + self.thicknesses[g],
140140
"min": val[g],
141141
"id": unit_id,
142142
"colour": self.colours[g],
143143
}
144+
if i==0:
145+
stratigraphic_column[name][g]["min"] = -np.inf
146+
if i==len(sg)-1:
147+
stratigraphic_column[name][g]["max"] = np.inf
148+
144149
unit_id += 1
145150
# add faults into the column
146151
if self.fault_properties is not None:

0 commit comments

Comments
 (0)