Fix inputdata of detrend
DetrendBase should only have Sky data as input, because it has
raw = persistent("Raw on sky Image [][None]", DepersistedSky, None)
However, the first step in McdImgDetrend is ApplyMasterDark, which can be applied to all Opt data, that is, also to raw Flat data:
raw = persistent("Persistence corrected raws. [][None]", DepersistedOpt, None)
The input of the first step should not be used for the DRLD, only the input of the base data product. However, this information is not available on the recipe level.