From db0743126d7e41e5c4bbe9a4d78a2bb644115aad Mon Sep 17 00:00:00 2001 From: "Adam Ginsburg (keflavich)" Date: Sat, 12 Oct 2024 15:57:39 -0400 Subject: [PATCH] pass progressbar kw for raywise --- spectral_cube/spectral_cube.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spectral_cube/spectral_cube.py b/spectral_cube/spectral_cube.py index ef24d1af..2a3160eb 100644 --- a/spectral_cube/spectral_cube.py +++ b/spectral_cube/spectral_cube.py @@ -430,7 +430,8 @@ def apply_numpy_function(self, function, fill=np.nan, includemask=includemask, progressbar=progressbar, **kwargs) elif how == 'ray': - out = self.apply_function(function, **kwargs) + out = self.apply_function(function, progressbar=progressbar, + **kwargs) elif how not in ['auto', 'cube']: warnings.warn("Cannot use how=%s. Using how=cube" % how, UnsupportedIterationStrategyWarning)