Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/argmax_rays' into cubewcs_mosaic…
Browse files Browse the repository at this point in the history
…_and_dask_reproject
  • Loading branch information
keflavich committed Oct 12, 2024
2 parents 92bab69 + 2163e65 commit 89dbd56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spectral_cube/spectral_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ def apply_function(self, function, axis=None, weights=None, unit=None,
# check dtype first (for argmax/argmin)
result = function(np.arange(3, dtype=self._data.dtype), **kwargs)
if 'int' in str(result.dtype):
out = np.zeros([nz, nx, ny], dtype=dtype)
out = np.zeros([nz, nx, ny], dtype=result.dtype)
else:
out = np.empty([nz, nx, ny]) * np.nan

Expand Down

0 comments on commit 89dbd56

Please sign in to comment.