From e8014e281b430e88f6342d8c85f7ecf844621194 Mon Sep 17 00:00:00 2001 From: "Adam Ginsburg (keflavich)" Date: Sat, 12 Oct 2024 16:44:40 -0400 Subject: [PATCH] paren fix --- spectral_cube/spectral_cube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spectral_cube/spectral_cube.py b/spectral_cube/spectral_cube.py index a610adce..704d4845 100644 --- a/spectral_cube/spectral_cube.py +++ b/spectral_cube/spectral_cube.py @@ -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: