Skip to content

Commit

Permalink
theta range
Browse files Browse the repository at this point in the history
  • Loading branch information
peijin94 committed Nov 3, 2022
1 parent f291894 commit 20d0e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psipy/tracing/tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _vector_grid_from_bs(self, bs: xr.DataArray):
from streamtracer import VectorGrid

# Account for tracing in spherical coordinates
bs.loc[..., "bp"] /= np.cos(bs.coords["theta"])
bs.loc[..., "bp"] /= np.abs(np.cos(bs.coords["theta"]))
bs.loc[..., "bp"] /= bs.coords["r"]
bs.loc[..., "bt"] /= bs.coords["r"]

Expand Down

0 comments on commit 20d0e0b

Please sign in to comment.