Releases: sncosmo/sncosmo
Releases · sncosmo/sncosmo
v2.4.0
v2.3.0
v2.2.0
v2.1.0
v1.8.0
v1.7.1
v1.4.0
v1.2.0
API Changes
-
Registry functions moved to the top-level namespace:
sncosmo.registry.register()
->sncosmo.register()
sncosmo.registry.register_loader()
->sncosmo.register_loader()
sncosmo.registry.retrieve()
-> deprecated, use class-specific functions such assncosmo.get_bandpass()
.
The old import paths will still work, so this is backwards compatible.
Enhancements
nest_lc()
now uses thenestle
module under the hood. A new
keywordmethod
is available which selects different sampling
methods implemented bynestle
. The new methods provide potential
efficiency gains.- The MLCS2k2 model is now available as a built-in Source, with the
name'mlcs2k2'
. - Bandpasses from the Carnegie Supernova Project added to built-ins.
- In
realize_lcs()
, a newscatter
keyword makes adding noise
optional.
In addition, there have been several minor bug fixes and
documentation improvements.
v1.0.0
API changes:
- The API of
mcmc_lc
has changed significantly (the function was marked
experimental in previous release). - [DEPRECATION] In result of
fit_lc
,res.cov_names
changed to
res.vparam_names
. - [DEPRECATION] In result of
nest_lc
,res.param_names
changed to
res.vparam_names
. This is for compatibility between the results offit_lc
andnest_lc
. [#30] - [DEPRECATION] Deprecate
flatten
keyword argument infit_lc()
in
favor of explicit use offlatten_result()
function.
Enhancements:
- Many new built-in models.
- Many new built-in bandpasses.
- New remote data fetching system. [#73]
- SALT2 model covariance available via
Model.bandfluxcov()
method and
modelcov=True
keyword argument passed tofit_lc
. - New simulation function,
zdist
, generates a distribution of redshifts
given a volumetric rate function and cosmology. - New simulation function,
realize_lcs
, simulates light curve data given a
model, parameters, and observations. - Add color-related keyword arguments to
plot_lc()
. - Add
tighten_ylim
keyword argument toplot_lc()
. - Add
chisq()
function and use internally infit_lc()
. - Add
SFD98Map
class for dealing with SFD (1998) dust maps persistently so
that the underlying FITS files are opened only once. - Update
get_ebv_from_map()
to work with new SkyCoord class in
astropy.coordinates
available in astropy v0.3 onward. Previously, this
function did not work with astropy v0.4.x (where older coordinates classes
had been removed). - Update to new configuration system available in astropy v0.4 onward.
This makes this release incompatible with astropy versions less than
0.4. - Now compatible with Python 3.
- Increased test coverage.
- Numerous minor bugfixes.