diff --git a/nifty/plotting/plot.py b/nifty/plotting/plot.py index ba618339d8a122205fd7e996ed5d69756036ec57..d0a9921eb845ed9dadbda46c8e2910a726e087e4 100644 --- a/nifty/plotting/plot.py +++ b/nifty/plotting/plot.py @@ -16,8 +16,7 @@ import os def _mollweide_helper(xsize): xsize = int(xsize) ysize = xsize//2 - res = np.full(shape=(ysize, xsize), fill_value=np.nan, - dtype=np.float64) + res = np.full(shape=(ysize, xsize), fill_value=np.nan, dtype=np.float64) xc = (xsize-1)*0.5 yc = (ysize-1)*0.5 u, v = np.meshgrid(np.arange(xsize), np.arange(ysize)) diff --git a/nifty/utilities.py b/nifty/utilities.py index 5674143c7b153889fb4aa36662d85ec9a7c1e53e..7b5cbcfe71ab2a629d1424214eeceeae4b6e418a 100644 --- a/nifty/utilities.py +++ b/nifty/utilities.py @@ -143,7 +143,7 @@ def _fill_upper_half(tmp, res, axes): def _fill_array(tmp, res, axes): if axes is None: - axes = range(tmp.ndim) + axes = tuple(range(tmp.ndim)) lastaxis = axes[-1] ntmplast = tmp.shape[lastaxis] slice1 = [slice(None)]*lastaxis + [slice(0, ntmplast)]