Skip to content

Commit

Permalink
fix: removing sign change for rotation angle
Browse files Browse the repository at this point in the history
  • Loading branch information
Lachlan Grose committed Oct 15, 2021
1 parent aea51bf commit 7ab33fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions LoopStructural/modelling/fold/foldframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ def calculate_fold_limb_rotation(self, feature_builder, axis=None):
# and 90
vv = np.cross(s1g, s0g, axisa=1, axisb=1)
ds = np.einsum('ij,ij->i', fold_axis, vv)
flr = np.where(np.abs(ds) > 0.5, np.rad2deg(np.arcsin(r2)),
(- np.rad2deg(np.arcsin(r2))))
flr = np.where(flr < -90, (180. + flr), flr)
flr = np.where(flr > 90, -(180. - flr), flr)
flr = np.rad2deg(np.arcsin(r2))#np.where(np.abs(ds) < 0.5, np.rad2deg(np.arcsin(r2)),
# (- np.rad2deg(np.arcsin(r2))))
# flr = np.where(flr < -90, (180. + flr), flr)
# flr = np.where(flr > 90, -(180. - flr), flr)
return flr, s1

def calculate_intersection_lineation(self, feature_builder):
Expand Down

0 comments on commit 7ab33fd

Please sign in to comment.