-
Notifications
You must be signed in to change notification settings - Fork 72
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
Obsobj update to main/v2.0 #311
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…bility with obs dicts.
Also add logic for caching emission line variances from MLE.
Offloads likelihood computations to NoiseModel objects that are attached to individual Observation instances. Also updates lnprobfn to handle lists of observations, and adds some docstrings and rough tests. fitting ubdates for observation lists; dosctring modernization.
Numerous tweaks to observation generation from old style dicts; Changes to test_eline for new predict() api.
Observation object methods to convert to structures, fits, h5, etc. Better docstrings. New Observation.Lines subclass. Fix import error in sedmodel.
Includes option to try to pickle model params.
…ume FilterSet; require sedpy >= 0.3
Moves the SSPBasis and FastStepBasis to galaxy_basis module. Removes the ssp_basis, dust_basis, and boneyard modules. Removes the get_spectrum method from SSPBasis and subclasses; this is handled by SpecModel Remove various multicomponent hacks.
…ore descriptive fit_mle_elines()
…th noise modeling.
…e polynomial fitting; comment out broken bestfit model saving.
…nstrumental smoothing.
… class for uncorrelated kernels (like jitter).
Treat case of dummy observation that is not any of the recognized kinds; Bump python version requirement.
…t in lnlike_testing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a condensed and updated version of #246 that fixes conflicts with the main branch.
It implements a new Observation class, which takes over responsibility for noise models and likelihood calculations, as well as instrumental smoothing for spectra. The lnprob function can now take an arbitrary list of observation objects.
List of significant changes:
Observation
class withSpectrum
,Photometry
andLines
subclasses. These can be generated from or convert to old style dictionaries, as well as structured arrays for output to a number of formats.NoiseModel1D
classfitting.lnprobfn
that handles an arbitrary list ofObservation
objects.SedModel
and derived classes.smoothing
module; relies on sedpy for smoothingRemaining things to do: