Releases: tomasstolker/species
Releases · tomasstolker/species
species v0.9.0
- Added support for Python 3.12, dropped support for Python 3.9
- Separated atmosphere and disk luminosity in
ModelBox
parameters - Fixed issue with finding missing grid spectra
- Fixed issue with plotting filter profile width
- Added
pyproject.toml
and removedsetup.py
- Removed most version restrictions from
requirements.txt
- Added
font_size
parameter toplot_spectrum
- Fixed pathlib error when adding grids with
add_custom_model
- Updated flux calibration tutorial
- Many small improvements and overall code maintenance
species v0.8.4
- Several small fixes in the retrieval framework (thanks @wbalmer!)
- Added
flux_units
parameter toget_mcmc_photometry
- Support for fitting multiple
disk_teff
anddisk_radius
parameters inFitModel
- Support for fitting the combined photometry of unresolved binary stars with different parallaxes
- Multiple improvements for fitting a combination of two spectra in
FitModel
- Support for flux ratio prior for filters when fitting a binary system
- Check for NaNs in the uncertainties when adding a spectrum with
add_object
- Updated
plot_posterior
for showing posteriors from binary systems - Returning the individual binary components with
get_mcmc_spectra
- Added support for coolTLUSTY Y dwarf spectra
- Tutorial for comparing data with a model grid of spectra
- Support for fitting separate
ism_ext
parameters for a binary system - Support for PHOENIX Husser et al. (2013) models
- Major refactoring of
FitModel
, improved extinction accuracy, faster interpolation based on Teff prior - Added optional
database_file
parameter toSpeciesInit
- Added
fixed_param
parameter toadd_samples
- Added
tag
parameter and several improvements inget_residuals
- Changed the values added with
inc_loglike
to ln(L) - Included chi2 and n_dof in
ResidualBox
- Fixed indentation problem in
CompareSpectra
- Robust implementation for filenames by using the
pathlib
instead of theos
module - Using
pooch
instead ofurllib
for downloading files - Fixed bug in
get_samples
with reading normal priors - Fixed bug with storing the log-likelihood after running
run_multinest
- Fixed Windows issue with the Linder et al. (2019) isochrones
- Check for NaN and inf when calculating the goodness-of-fit statistic in CompareSpectra
- Exclude SpeX spectra that can not be flux calibrated when adding with
add_spectra
- Updated dependency versions
- Overall code maintenance, many minor improvements, and updated tutorials
species v0.8.3
Another fix in setup.py
! Adding a missing JSON file to the package_data
.
species v0.8.2
Fixing issue with setup.py
to include the JSON files in the package on PyPI
species v0.8.1
- Fixed issue with
max_prob
parameter inplot_posterior
- Included
uniform_priors
andnormal_priors
toSamplesBox
- Added
show_priors
parameter toplot_posterior
- Fixed issue with wavelength precision in Exo-Rem grid
- Added
verbose
parameter tolist_filters
method ofReadObject
- Implemented the
units
parameter inplot_spectrum
- Added
convert_from
parameter toconvert_units
function - Extended the BT-NextGen grid to 5 mm
- Allowing to fix the parallax when fitting with
FitModel
- Including the blackbody radius (calculated from
disk_teff
) in the posterior withinc_luminosity=True
inplot_posterior
- Added the
add_simple_object
method toDatabase
for retrieving data from the SIMPLE Database - Support for providing a spectrum array directly to the
spectrum
parameter ofadd_object
- Retrieving the
f_sed
parameter for each cloud species individually by settingglobal_fsed=False
- Added
spec_res
attribute toModelBox
- Support for Sonora Elf Owl L-, T-, and Y-type grids
- Fixed issue with appending mode for opening the HDF5 database
- Fixed issue with
package_data
insetup.py
species v0.8.0
- Improved package structure by including additional subpackages and modules
- The implicit import of classes and functions is removed from the initialization of the package, instead these should be explicitly imported by the user
- Started with implementing improved output printing, added
print_section
function incore_util
- Support for BT-NextGen subsolar metallicity grid (
tag='bt-nextgen-subsolar'
) - Changed default transmission threshold from 0.05 to 0.01 in
SyntheticPhotometry
- GJ 758 B included in
companion_data.json
(thanks @mperrin!) - Tutorial included for plotting companion properties
- Fitting a flux scaling and offset in
FitModel
- Updated
add_model_grid
such that only spectra files are unpacked within the selectedteff_range
- Added
unpack_tar
parameter toadd_model
- Update links in tutorials and documentation pages
- Added
verbose
parameter toavailable_models
andlist_companions
- Fixed issue with
float
type returned by likelihood function - Fixed issue with
np.inf
in the likelihood that can not be handled by UltraNest - Added
setup_retrieval
method toAtmosphericRetrieval
- Added gradient P-T parameterization from Zhang et al. 2023 (thanks @wbalmer!)
- Support for nested sampling with Dynesty in
AtmosphericRetrieval
withrun_dynesty
method (thanks @wbalmer!) - Refactoring of the prior function in
FitModel
so it is shared by the sampling routines - Added
normal_prior
parameter toFitModel
and deprecated theprior
parameter inrun_multinest
andrun_ultranest
- Added
resume
andkwargs_multinest
parameters torun_multinest
- Added
resume
andkwargs_ultranest
parameters torun_ultranest
- Spectra are no longer removed when rerunning
add_object
with different spectrum labels - Changed
scipy.interpolate.interp1d
tonumpy.interp
which produces the same output butinterp1d
is considered a legacy function - Added
calc_phot
parameter tocontrast_to_mass
- Retrieving
log_p_base
with physical clouds instead of using the condensation profile - Added
param_fmt
parameter toplot_spectrum
- Fixed issue with appending to database during multiprocessing
- Added
verbose
parameter toget_median_sample
,get_probably_sample
, andget_compare_sample
- Store priors from
FitModel
in the database results - Removed
interp_method
from configuration so linear interpolation is used - Added
rad_vel
andvsini
as optional retrieval parameters inAtmosphericRetrieval
- Added support for nested sampling with Dynesty in
FitModel
withrun_dynesty
method - Renamed the
spec_res
parameter inadd_model
towavel_sampling
- Deprecated the
smooth
parameter inReadModel
andReadPlanck
since thespec_res
parameter is sufficient - Renamed the
get_spec_res
method inReadModel
toget_sampling
- Moved the
convert_model_name
function to themodel_util
module - Added option to use
wavel_range
parameter without settingwavel_sampling
in order to not resample but store a restricted wavelength range - Increased dependency versions in
requirements.txt
- Updated documentation and tutorials
- Many small enhancements and several minor bug fixes
species v0.7.4
- Added the
contrast_to_mass
method toReadIsochrone
for converting contrast values for a given filter into masses - Support for clear and cloudy model spectra of the petitCODE grid that is used for the isochrones from Linder et al. (2019)
- Possibility to include only photometric fluxes when comparing a grid of model spectra with
CompareSpectra
species v0.7.3
- Removed deprecated
update_spectra
function - Some minor maintenance of
util
andplot
functions - Updated notebook tutorials
species v0.7.2
- Updated the type annotations so they are compatible with Python 3.11
- Tested the notebook tutorials and fixed several small issues due to code changes
species v0.7.1
- SPHINX model spectra:
add_model('sphinx')
- BEX isochrones from Linder et al. (2019):
add_isochrones('linder2019')
- Keck NIRC Y-band filter:
add_filter('Keck/NIRC.Y')