-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matrix contains Infs or NaNs when fitting #83
Comments
I see the problem:
Specifically
There are some bins with zero counts and zero uncertainty, so when it tries to do a matrix inverse it seems to end up with a singular matrix and the thing blows up. I think you'd need to exclude those with a mask |
I bumped into this same problem again and it wasn't obvious what was wrong. Then I remembered this thread! Made me think that perhaps we should report an error if there are data bins with zero counts and uncertainty. UPDATE: turned out to be a dodgy dataset, but might still be worth letting the user know. (This issue is low priority!) |
We've run into a problem fitting the SWIFT BAT data where the minimisation algorithm runs into an invalid matrix at some point. Here's an example using the SWIFT BAT dataset. The datasets you need to reproduce these are as follows (in a different repository)
Data: https://github.com/phajy/SWIFT_J0909/blob/main/data/swift_bat/swift_bat_157month.pha
Response: https://github.com/phajy/SWIFT_J0909/blob/main/data/swift_bat/swiftbat_survey_full_157m.rsp
gives the following error
Perhaps the model explores an invalid region of parameter space of becomes zero? I need to do some more investigation but thought I'd start a thread here.
This does work for other datasets, e.g., NuSTAR.
The text was updated successfully, but these errors were encountered: