Skip to content

Commit

Permalink
Update pmd_beamphysics/units.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ken Lauer <[email protected]>
  • Loading branch information
ChristopherMayes and ken-lauer authored Nov 19, 2024
1 parent 03f7519 commit 4871244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pmd_beamphysics/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def nice_array(a):
a = np.asarray(a)
x = a[0]
else:
a = np.array(a)
a = np.asarray(a)
x = max(np.ptp(a), abs(np.mean(a))) # Account for tiny spread

fac, prefix = nice_scale_prefix(x)
Expand Down

0 comments on commit 4871244

Please sign in to comment.