Skip to content

Commit 673b99a

Browse files
committed
Fix lon_0 in slice
1 parent 3079b8f commit 673b99a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/magic/surf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ def slice(self, field='Bphi', lon_0=0., levels=defaultLevels, cm=None,
14491449
xx_ic = rr_ic * np.cos(tth_ic)
14501450
yy_ic = rr_ic * np.sin(tth_ic)
14511451

1452-
lon_0 = np.asarray(lon_0)
1452+
lon_0 = np.atleast_1d(lon_0)
14531453

14541454
if normed is None:
14551455
normed = diverging_cmap(field)

0 commit comments

Comments
 (0)