Skip to content

Commit 38fbc14

Browse files
committed
(BUG) fixing typos/syntax for fold rot calc fix
1 parent 483019d commit 38fbc14

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

LoopStructural/modelling/core/geological_model.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,9 @@ def create_and_add_folded_foliation(self, foliation_data, fold_frame=None,
695695
self._add_faults(series_builder)
696696

697697
series_builder.add_data_to_interpolator(True)
698-
fold_axis = kwargs.get('fold_axis')
699-
if fold_axis not None:
698+
fold_axis = kwargs.get('fold_axis',None)
699+
if fold_axis is not None:
700+
fold_axis = np.array(fold_axis)
700701
if len(fold_axis.shape) == 1:
701702
fold.fold_axis = fold_axis
702703

LoopStructural/modelling/fold/foldframe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def calculate_fold_axis_rotation(self, feature_builder,fold_axis=None):
4343
points.append(gpoints)
4444
if npoints.shape[0] > 0:
4545
points.append(npoints)
46-
if fold_axis not None:
46+
if fold_axis is not None:
4747
if fold_axis.shape[0] > 0 and fold_axis.shape[1] == 6:
4848
points.append(fold_axis)
4949
if len(points) == 0:

0 commit comments

Comments
 (0)