Commit c91b2e9d authored by Martin Reinecke's avatar Martin Reinecke

small fixes

parent 62959c1b
Pipeline #21742 passed with stage
in 4 minutes and 21 seconds
......@@ -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))
......
......@@ -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)]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment