You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/orange/adamginsburg/ACES/reduction_ACES/aces/analysis/giantcube_cuts.py", line 123, in <module>
signal_mask = ndmorph.binary_dilation(signal_mask, structure=np.ones([3, 3, 3]), iterations=1)
File "/orange/adamginsburg/miniconda3/envs/python39/lib/python3.9/site-packages/dask_image/ndmorph/__init__.py", line 57, in binary_dilation
dispatch_binary_dilation(image),
File "/orange/adamginsburg/miniconda3/envs/python39/lib/python3.9/site-packages/dask_image/dispatch/_dispatcher.py", line 23, in __call__
meth = self.dispatch(datatype)
File "/orange/adamginsburg/miniconda3/envs/python39/lib/python3.9/site-packages/dask/utils.py", line 635, in dispatch
raise TypeError(f"No dispatch for {cls}")
TypeError: No dispatch for <class 'spectral_cube.masks.LazyComparisonMask'>
Unfortunately, it looks like this means mask dilation/erosion can only be done on already-computed masks without some extra work. @astrofrog any ideas on what we need to add to mask objects to make them play nice with dask?
The text was updated successfully, but these errors were encountered:
signal_mask.include() is likely all that is needed here; I'll give this a day or two before I decide it's just user error on my part, though maybe we want to have dask utilities default to using the include result
Unfortunately, it looks like this means mask dilation/erosion can only be done on already-computed masks without some extra work. @astrofrog any ideas on what we need to add to mask objects to make them play nice with dask?
The text was updated successfully, but these errors were encountered: