Skip to content

Commit

Permalink
pass progressbar kw for raywise
Browse files Browse the repository at this point in the history
  • Loading branch information
keflavich committed Oct 13, 2024
1 parent 7e71000 commit 46fc6ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spectral_cube/spectral_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 46fc6ad

Please sign in to comment.