-
Notifications
You must be signed in to change notification settings - Fork 26
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
Piecewise/partial integration of drvdputt/experimental #280
Comments
Would be great to pull these into 4 PRs from prompt merging to main:
|
I copied a selection of comments from this discussion #281 (comment), as a reminder for when I put in the Fitter framework.
A comment on this last thing: If a model is fit to spectrum A, and then another spectrum B is passed with a different instrument / wavelength range, the features culling will need to be different. Which means reconstructing the model. So there are cases where a new Fitter needs to be initialized (or we need to implement editing functionality...). For now, the simplest way is to reconstruct it at every fit regardless (which I do in my experimental branch). If this is a problem with efficiency, we can come up with a smarter way. |
Why does a new fitter always need to be made? Since instrument data are provided "at the last minute" a I do think we should allow (but not require) |
Note of general caution: with the format used in #283 (recently merged into dev), be very careful when assigning values! The right way to access an element of the bounds tuple is e.g. I spent a long time trying to figure out what was going wrong while writing the fit results out to the features table. Here's what all the
Something to keep in mind while reviewing the code. |
I have spun up a test pull request for the switch to power units here https://github.com/drvdputt/pahfit/pull/1/files. It's pointed to drvdputt/dev-fitterapi on my own fork, so I can see what is changing. Will be pointed PAHFIT/dev once #289 is merged. |
github.com/drvdputt/pahfit/tree/experimental has diverged quite far from master. But it is in working order, and I am actively using it for my science goals. There are many aspects which we want to integrate into the master branch, but we should do so piece wise to avoid breakage.
Here is an overview of the changes I made so far.
Major features or structures
Other bug / usability fixes
The text was updated successfully, but these errors were encountered: