-
Notifications
You must be signed in to change notification settings - Fork 80
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
Fix compound model fit failure #276
Conversation
Codecov Report
@@ Coverage Diff @@
## master #276 +/- ##
==========================================
- Coverage 63.42% 62.67% -0.75%
==========================================
Files 47 47
Lines 2614 2650 +36
==========================================
+ Hits 1658 1661 +3
- Misses 956 989 +33
Continue to review full report at Codecov.
|
This needs a little more work before review, a case I didn't initially test is failing at the moment. EDIT: now ready for review! |
8544c3d
to
8160233
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just remove the print statement and I think this is good to merge.
9e90433
to
79c0be2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The bug appears to be fixed. However, I can't git a Gaussian1D + Linear1D model to give a reasonable
fit to a subset--a separate issue for me to look into.
@PatrickOgle - can you make a github issue about that specifically and link it here? |
Updating the displayed parameters after fitting a compound model was failing, due to
specutils.QuantityModel
not being subscriptable with the component model names. I left in the old parameter update code to be triggered if the resulting model isn't a QuantityModel (I don't know if this will actually happen ever, but better safe than sorry). Fixes a bug raised in #263 by @PatrickOgle that fell off my radar earlier in the year (TypeError: 'QuantityModel' object is not subscriptable
).