Pipeline uses Pipeline.img_extension to check whether a file should be loaded. Otherwise, random files such as text files and whatnot, would also get loaded. However, this is usually .tif. Pipeline should be able to handle multiple extensions, such at that it could be ['.tif', '.hdf5'], so that all stacks can be loaded.
As it is, Extractor will always run if put in a Pipeline, even if force_rerun is False.
Pipeline
usesPipeline.img_extension
to check whether a file should be loaded. Otherwise, random files such as text files and whatnot, would also get loaded. However, this is usually.tif
.Pipeline
should be able to handle multiple extensions, such at that it could be['.tif', '.hdf5']
, so that all stacks can be loaded.As it is,
Extractor
will always run if put in aPipeline
, even ifforce_rerun
is False.