Skip to content

Commit

Permalink
fix: 🔥 changes fault slip warning to info
Browse files Browse the repository at this point in the history
  • Loading branch information
Lachlan Grose committed Mar 21, 2022
1 parent 3dc2a19 commit 16d16d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LoopStructural/modelling/core/geological_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,6 @@ def from_processor(cls, processor):
)
< 90,
)
# model[edge[1]].add_abutting_fault(model[edge[0]])
for s in processor.stratigraphic_column.keys():
if s != "faults":
faults = None
Expand Down Expand Up @@ -1609,7 +1608,7 @@ def create_and_add_fault(
.to_numpy()
)
if np.any(np.isnan(fault_slip_vector)):
logger.warning("Fault slip vector is nan, estimating from fault normal")
logger.info("Fault slip vector is nan, estimating from fault normal")
strike_vector, dip_vector = get_vectors(fault_normal_vector[None, :])
fault_slip_vector = dip_vector[:, 0]
logger.info(f"Estimated fault slip vector: {fault_slip_vector}")
Expand Down Expand Up @@ -1675,6 +1674,7 @@ def create_and_add_fault(
**kwargs,
)
fault.builder = fault_frame_builder

for f in reversed(self.features):
if f.type == "unconformity":
fault.add_region(lambda pos: f.evaluate_value(pos) <= 0)
Expand Down

0 comments on commit 16d16d7

Please sign in to comment.