Skip to content

Commit

Permalink
black autoformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Edgar-21 committed Sep 27, 2024
1 parent c65130d commit 8a93251
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions parastell/nwl_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,10 @@ def flux_coords(plas_eq, wall_s, coords, num_threads):
for theta_coord in theta_coord_chunk
]
# Ensures theta_coords are all positive (add 360 degrees where needed)
theta_coords = [(theta if theta >= 0 else theta + 2 * np.pi) for theta in theta_coords]

theta_coords = [
(theta if theta >= 0 else theta + 2 * np.pi) for theta in theta_coords
]

return phi_coords.tolist(), theta_coords


Expand Down Expand Up @@ -345,7 +347,7 @@ def nwl_plot(

theta_min = 0 - pol_ext / num_theta / 2
theta_max = pol_ext + pol_ext / num_theta / 2

# Bin particle crossings
count_mat, phi_bins, theta_bins = np.histogram2d(
phi_coords,
Expand Down

0 comments on commit 8a93251

Please sign in to comment.