From 990e0f48cd02af1965418f3371d2e267e6affdb8 Mon Sep 17 00:00:00 2001 From: Lachlan Grose Date: Wed, 2 Mar 2022 14:18:23 +1100 Subject: [PATCH] fix: :bug: stratigraphic column was not covering scalar field range. Change to set min/max to -inf/inf --- LoopStructural/modelling/input/process_data.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/LoopStructural/modelling/input/process_data.py b/LoopStructural/modelling/input/process_data.py index 145697a06..a66156d1e 100644 --- a/LoopStructural/modelling/input/process_data.py +++ b/LoopStructural/modelling/input/process_data.py @@ -133,7 +133,7 @@ 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], @@ -141,6 +141,11 @@ def stratigraphic_column(self): "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: