Skip to content

Commit

Permalink
paren fix
Browse files Browse the repository at this point in the history
  • Loading branch information
keflavich committed Oct 12, 2024
1 parent 5c4a7c6 commit e8014e2
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 @@ -1058,7 +1058,7 @@ def apply_function(self, function, axis=None, weights=None, unit=None,

# allocate memory for output array
# check dtype first (for argmax/argmin)
result = function(np.arange(3, dtype=self._data.dtype, **kwargs))
result = function(np.arange(3, dtype=self._data.dtype), **kwargs)
if 'int' in str(result.dtype):
out = np.zeros([nz, nx, ny], dtype=dtype)
else:
Expand Down

0 comments on commit e8014e2

Please sign in to comment.