Skip to content

Commit

Permalink
noqa for linting on a long formula
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Giuliani committed Oct 10, 2023
1 parent 609143e commit 643132c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simsopt/geo/surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ def d2mean_cross_sectional_area_by_dcoeff_dcoeff(self):
dztheta_dt = dg2_ds[:, :, 2, None, :]

mean_area = np.mean((1/r) * (ztheta*(x*yvarphi-y*xvarphi)-zvarphi*(x*ytheta-y*xtheta)))/(2.*np.pi)
d2mean_area_ds2 = np.sign(mean_area)*np.mean((2*(-(xvarphi*y*ztheta) + xtheta*y*zvarphi + x*(yvarphi*ztheta - \ # noqa
d2mean_area_ds2 = np.sign(mean_area)*np.mean((2*(-(xvarphi*y*ztheta) + xtheta*y*zvarphi + x*(yvarphi*ztheta - \
ytheta*zvarphi))*dr_dt*dr_ds - r*((yvarphi*ztheta - \
ytheta*zvarphi)*dx_dt + y*zvarphi*dxtheta_dt - y*ztheta*dxvarphi_dt - \
xvarphi*ztheta*dy_dt + xtheta*zvarphi*dy_dt - xvarphi*y*dztheta_dt + \
Expand All @@ -769,7 +769,7 @@ def d2mean_cross_sectional_area_by_dcoeff_dcoeff(self):
x*(-(dzvarphi_dt*dytheta_ds) + dztheta_dt*dyvarphi_ds + \
dyvarphi_dt*dztheta_ds - dytheta_dt*dzvarphi_ds)) + \
r*(xvarphi*y*ztheta - xtheta*y*zvarphi + x*(-(yvarphi*ztheta) + \
ytheta*zvarphi))*dr2_dsdt)/r**3, axis=(0, 1))/(2*np.pi)
ytheta*zvarphi))*dr2_dsdt)/r**3, axis=(0, 1))/(2*np.pi) # noqa
return d2mean_area_ds2

def arclength_poloidal_angle(self):
Expand Down

0 comments on commit 643132c

Please sign in to comment.