I am encountering a reproducible KeyError at the end of ba.fit_spectrum when fitting individual BAT survey PHA files.
Importantly:
- The XSPEC fit itself runs successfully
- The spectrum is plotted
- Fit parameters are printed
- The error occurs only after fitting, when BatAnalysis attempts to store model parameters back into the BatSurvey object