In run_illumination_correction.py, Dask distributes calls to read_imgs_to_stack(). tifffile.imagecodecs exceptions occurring when the images were read were being incorrectly transmitted to the Dask master process. This PR translates those exceptions to RuntimeErrors, which are correctly transmitted.
In run_illumination_correction.py, Dask distributes calls to read_imgs_to_stack(). tifffile.imagecodecs exceptions occurring when the images were read were being incorrectly transmitted to the Dask master process. This PR translates those exceptions to RuntimeErrors, which are correctly transmitted.