Skip to content

Commit

Permalink
fix: faults with no value data not interpolating
Browse files Browse the repository at this point in the history
data was not being added to interpolator if there was
no fault trace.
  • Loading branch information
Lachlan Grose committed Dec 7, 2021
1 parent 5f83cf3 commit bf55ec6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LoopStructural/modelling/fault/fault_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def create_data_from_geometry(
)
if len(distance) == 0:
logger.error("There is no fault trace for {}".format(self.name))
# add any data anyway - usually just orientation data
self.add_data_from_data_frame(data)
return
major_axis = np.max(distance)
logger.warning("Fault major axis using map length: {}".format(major_axis))
Expand Down

0 comments on commit bf55ec6

Please sign in to comment.