Releases: tomasstolker/species
Releases · tomasstolker/species
species v0.3.5
- Support for nested sampling with
UltraNest
. Therun_ultranest
method is added inFitModel
. - Added the
spec_res
parameter inReadCalibration.resample_spectrum
to smooth a spectrum before resampling. - Tools for empirical analysis.
CompareSpectra.spectral_type
can be used for determining the spectral type. - The
plot_statistic
andplot_empirical_spectra
functions can be used for plotting the results fromCompareSpectra
. - Support for the SDSS spectra from Kesseli et al. (2017).
- Support for running
FitModel
with MPI. Requires the manual installation ofmpi4py
. - Improved notebook tutorial for fitting data with model spectra.
- Some minor maintenance. Several warnings and errors added.
species v0.3.4
- Moved the remote storage location of the model grids.
- Reading
corr_len
andcorr_amp
parameters frombounds
and use default values otherwise. - Added
effective_width
method toReadFilter
. - Updated README and Makefile.
species v0.3.3
- Compatibility with Python 3.8. The CI tests with Python 3.6, 3.7 and 3.8.
- Updated README, documentation and some minor maintenance.
species v0.3.2
- Support for fitting power-law spectra with
FitModel
. - Support for fitting a blackbody disk component in
FitModel
. - Support for ATMO, BT-Cond, and (now publically available) petitCODE hot grid spectra.
- Added the
inc_mass
parameter inplot_posterior
. - Improved
title_fmt
parameter inplot_posterior
. - Added the
flux_density
parameter inadd_object
. - Support for ALMA fluxes.
- Renamed
plot_photometry
toplot_mag_posterior
. - Support of
get_mcmc_photometry
for calibration spectra. - Improved sampling of the log-normal grain size distribution. The grid of cross sections has been recalculated.
- New error inflation approach. A scaling relative to the model fluxes is fitted instead of a constant value.
- A large number of smaller, new features and improvements.
- Some maintenance and updated dependencies.
- Updated tutorials, documentation and docstrings.
- Additional type hints and type checks.
species v0.3.1
- The spectra of AMES-Cond, AMES-Dusty, DRIFT-PHOENIX, BT-Settl, and BT-NextGen have been resampled to a spectral resolution of R=2000 and moved to a new download location (https://people.phys.ethz.ch/~ipa/tstolker/). The data size of these grids are typically several hundred MBs so downloading and processing is much faster now.
- Support for photon-counting detectors when calculating synthetic photometry. The detector type is stored as attribute with the filter profile.
- Extinction parameters have been added to
FitModel
: ISM extinction, a power-law size distribution of silicate grains, or a log-normal size distribution of silicate grains (see documentation for details). - Functions in
plot_mcmc
for plotting the sampled extinction and size distributions:plot_extinction
andplot_size_distributions
. - Refactoring of
dust_util
. - Bug fix when fixing missing grid points with
add_model
. - Support for the BT-Settl CIFIST spectra (
'bt-settl-cifist'
). - Additional unit tests and updated documentation.
- Several minor improvements, bug fixes, new features, and maintenance.
species v0.3.0
- Nested sampling support by
FitModel
withrun_multinest
. - Fitting blackbody spectra has been merged in
FitModel
andFitPlanck
has been deprecated - Support of
FitModel
for fitting calibration parameters, including a Gaussian process for correlated noise. - Support for duplicate filter names.
- The
inc_phot
andinc_spec
parameters allow for subsets of data. - Added optical constants and a
reddening
parameter inplot_color_magnitude
andplot_color_color
. - Added the
inc_luminosity
parameter in `plot_posterior. - Improved and faster use of parallaxes.
- Type checks added to some of the classes and methods.
- Compatibility of
add_object
with the GRAVITY FITS format. - Several new features for fine-tuning of plots, including the
plot_kwargs
parameter inplot_spectrum
. - Many small improvements and a few bug fixes.
species v0.2.2
- Support for Exo-REM model spectra in
add_model
,FitModel
, andReadModel
. - Storing the spectral resolution of each spectrum from an object.
FitModel
uses the spectral resolution to smooth the model spectra with a Gaussian.- Fast convolution with
smooth_spectrum
when the wavelength sampling ha a uniform spectral resolution. - Added the
absolute_to_apparent
function to convert absolute to apparent magnitudes. - Added the
update_spectra
function for updating the spectra of an object with a best-fit scaling and/or error inflation. - Optional scaling parameter in
FitModel
that can be fitted for each spectrum. - Added
teff_labels
parameter inplot_color_magnitude
. - Added
get_magnitude
andget_color_magnitude
inReadPlanck
. - Compatibility of
plot_color_magnitude
with color-magnitudes fromReadPlanck
. - Factor 4 bug fix in the flux from
ReadPlanck
. - Legend
**kwargs
inplot_spectrum
. - Several minor bug fixes and improvements.
- Updated documentation.
species v0.2.1
- Faster runtime of
FitModel
by resampling the wavelengths only once prior to the sampling. - Added the
interpolate_grid
function inFitModel
. - Refactoring of several
ReadModel
functions to make them independent of the model name. - Additional keyword arguments in
add_model
to restrict the wavelength and temperature range of petitCODE and DRIFT-PHOENIX spectra. - Updated tutorials and documentation.
species v0.2.0
- Updated tutorials and documentation.
- Improved plotting functionalities.
- Error propagation for synthetic fluxes and magnitudes.
- Minor maintenance, additional warnings and errors.
species v0.1.4
- The
spectrum
argument ofadd_object
is changed to a dictionary which can contain multiple spectra and optionally their covariance matrix. - Compatibility of
FitModel
andFitPlanck
with multiple spectra and optionally the use of covariance matrices in the MCMC sampling. - Possibility to use a combination of multiple temperatures and radii in
FitPlanck
. delete_data
function for removing a dataset from the database.- Additional functionalities in
plot_color
. - All spectral resampling is done with
spectres
. This is slower than before but more accurate. wavel_resample
parameter inget_model
to resample to an input wavelength grid.- Data is stored in the database as
float64
instead offloat32
. - Changed the BT-Settl spectra from CIFIST2011 to CIFIST2011c.
- Additional errors and warnings.
- Major maintenance, small improvements, and several bug fixes.