From 487124453e5725df40424eac1b54c2d048756eab Mon Sep 17 00:00:00 2001 From: Christopher Mayes <31023527+ChristopherMayes@users.noreply.github.com> Date: Tue, 19 Nov 2024 15:08:00 -0800 Subject: [PATCH] Update pmd_beamphysics/units.py Co-authored-by: Ken Lauer <152229072+ken-lauer@users.noreply.github.com> --- pmd_beamphysics/units.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmd_beamphysics/units.py b/pmd_beamphysics/units.py index 1b06be6..8502e65 100644 --- a/pmd_beamphysics/units.py +++ b/pmd_beamphysics/units.py @@ -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)