Skip to content

Commit

Permalink
Revert changes to framedcurve.
Browse files Browse the repository at this point in the history
  • Loading branch information
ejpaul committed Dec 13, 2023
1 parent d382dde commit ab9083d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/simsopt/geo/framedcurve.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,6 @@ def __init__(self, curve, rotation=None):
self.rotation = rotation
Curve.__init__(self, depends_on=deps)

def frame_twist(self):
t, n, _ = self.rotated_frame()
_, ndash, _ = self.rotated_frame_dash()
T = (n[:,0] * (ndash[:,1]*t[:,2] - ndash[:,2]*t[:,1]) \
+ n[:,1] * (ndash[:,2]*t[:,0] - ndash[:,0]*t[:,2]) \
+ n[:,2] * (ndash[:,0]*t[:,1] - ndash[:,1]*t[:,0]))
return np.sum(T)/(len(T)*2*np.pi)

class FramedCurveFrenet(FramedCurve):
r"""
Expand Down

0 comments on commit ab9083d

Please sign in to comment.