Skip to content

Commit

Permalink
pass kwargs (needed for percentile)
Browse files Browse the repository at this point in the history
  • Loading branch information
keflavich committed Oct 12, 2024
1 parent e2bd76f commit 5c4a7c6
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))
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 5c4a7c6

Please sign in to comment.