You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After using the auto_background function in Sherpa, the data and fit plots use counts in the y axis. Since the default behavior of Sherpa is using count rates, this change after calculating PCA models can be quite annoying. It is something easy to fix by the user, but it can take some time to realize what happen.
As far as I understand this is caused by the following line in the fit method of the PCAFitter class:
After using the auto_background function in Sherpa, the data and fit plots use counts in the y axis. Since the default behavior of Sherpa is using count rates, this change after calculating PCA models can be quite annoying. It is something easy to fix by the user, but it can take some time to realize what happen.
As far as I understand this is caused by the following line in the fit method of the PCAFitter class:
BXA/bxa/sherpa/background/pca.py
Line 359 in 5a6ee5f
It would be helpful if a note is included in the documentation so the users are aware of that change when using PCA models.
Ideally, the best would be to recover the initial behavior of Sherpa after running a PCA fit. I can give it a try, if you think is something worth it.
The text was updated successfully, but these errors were encountered: