Skip to content

Commit

Permalink
black reformatting forsigned Bp
Browse files Browse the repository at this point in the history
  • Loading branch information
HarukiST committed Sep 18, 2024
1 parent 8458d98 commit de512ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hypnotoad/core/equilibrium.py
Original file line number Diff line number Diff line change
Expand Up @@ -4045,8 +4045,8 @@ def Bpol(self, R, Z):
signed poloidal magnetic field as a function of R and Z
added by H. Seto
"""
return self.f_psi_sign * numpy.sqrt(self.Bp_R(R, Z) **2 + self.Bp_Z(R, Z) ** 2)
return self.f_psi_sign * numpy.sqrt(self.Bp_R(R, Z) ** 2 + self.Bp_Z(R, Z) ** 2)

def B2(self, R, Z):
"""
B^2 as a function of R and Z
Expand Down
2 changes: 1 addition & 1 deletion hypnotoad/core/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -1563,7 +1563,7 @@ def integrand_func(R, Z):
# + self.meshParent.equilibrium.Bp_Z(R, Z) ** 2
# )
Bp = self.meshParent.equilibrium.Bpol(R, Z)

return Bt / (R * Bp)

integrand = integrand_func(
Expand Down

0 comments on commit de512ca

Please sign in to comment.