Merging FitPlanck in FitModel, support for calibration parameters, reading subsets of object data #12
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.
FitPlanck
functionalities intoFitModel
to reduce code duplication. One or multiple blackbody curves can be fitted by settingmodel='planck'
.FitPlanck
without backward compatibility.FitModel
, including an instrument-dependent flux scaling, error inflation, and model covariances through a correlation length and amplitude (see Wang et al. 2020). The likelihood function and already existing covariances are updated accordingly. See API documentation for details on how to include the calibration parameters and set the priors.fit_corr
parameter inFitModel
which takes a list of spectrum names for which the covariances are fitted.inc_phot
andinc_spec
inget_object
,FitModel
, andget_residuals
. The changes are backward compatible so the argument can still be a boolean. However, it is also possible to provide a list with filter names toinc_phot
or spectrum names toinc_spec
if only part of the data should be read.filters
parameter inget_object
,FitModel
, andget_residuals
. Selecting a subset of photometry is now done withinc_phot
.download_filter
to ensure that only filter profiles from energy counting detectors are used.smooth
parameter inget_spectrum
fromReadPlanck
to smooth a spectrum with a Gaussian to a specified resolution. This is also used inFitModel
.