Skip to content
Snippets Groups Projects
Commit c91b2e9d authored by Martin Reinecke's avatar Martin Reinecke
Browse files

small fixes

parent 62959c1b
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -16,8 +16,7 @@ import os ...@@ -16,8 +16,7 @@ import os
def _mollweide_helper(xsize): def _mollweide_helper(xsize):
xsize = int(xsize) xsize = int(xsize)
ysize = xsize//2 ysize = xsize//2
res = np.full(shape=(ysize, xsize), fill_value=np.nan, res = np.full(shape=(ysize, xsize), fill_value=np.nan, dtype=np.float64)
dtype=np.float64)
xc = (xsize-1)*0.5 xc = (xsize-1)*0.5
yc = (ysize-1)*0.5 yc = (ysize-1)*0.5
u, v = np.meshgrid(np.arange(xsize), np.arange(ysize)) u, v = np.meshgrid(np.arange(xsize), np.arange(ysize))
......
...@@ -143,7 +143,7 @@ def _fill_upper_half(tmp, res, axes): ...@@ -143,7 +143,7 @@ def _fill_upper_half(tmp, res, axes):
def _fill_array(tmp, res, axes): def _fill_array(tmp, res, axes):
if axes is None: if axes is None:
axes = range(tmp.ndim) axes = tuple(range(tmp.ndim))
lastaxis = axes[-1] lastaxis = axes[-1]
ntmplast = tmp.shape[lastaxis] ntmplast = tmp.shape[lastaxis]
slice1 = [slice(None)]*lastaxis + [slice(0, ntmplast)] slice1 = [slice(None)]*lastaxis + [slice(0, ntmplast)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment