I have used ASIDeepStack several times in stacking images. At the end of the process it always creates a file with the name of ??????_AutoSave_Stack.fit in the folder that held the raw fit files where ?????? is either Bias, Darks, Flats or Lights depending on the prefix of the fits images I've stacked. In each case I'm making an assumption that this created file is the master which ASIDeepStack created from all the individual fit files that were stacked. So the Bias folder has the raw Bias fit files and a created AutoSave file for the Bias. The same occurs in the Darks and Flats folders (and the Lights folder too).
The process I have been using is to load all the Bias, Darks, Flats & Lights and stack everything at the same time as I am assuming that this process is how ASIDeepStack knows which Bias, Darks & Flats to use when processing the Lights.
But, if I try to use this "master" the next time I stack a bunch of Light fits files (instead of using all the individual fit images of a given type), the process aborts (ends with an error). Investigating this I found that the "master" fits files that are created do not have the BAYERPAT field populated in the header of the master file. Checking the individual fit files that went into the "master" file I see that all of them do have the BAYERPAT field populated and all of the individual fit files have the same value, which in my case is RGGB (I own an ASI533MC camera). This is true no matter the type of image file being processed.
This leads me to think that either the Autosave files that are constructed by ASIDeepStack during processing are not master files or there is a bug in the deep stack logic whereby the BAYERPAT value of the individual files is not transferred to the master copy that is written.
I am new to astrophotography and it is quite possible that I am not understanding something. Any assistance is appreciated. (BTW, I have read the Supplied PDF doc for ASIDeepStack and I do not see any reference to including the Bias, Darks & Flats when stacking Lights. This is why I am assuming that in order to include these calibration files in the stacking process, they need to be processed at the same time the Lights are processed.)