API changes
- Remove
loglmax
from result ofnest_lc()
, which was not officially documented or supported. Usenp.max(res.logl)
instead.
Enhancements
- Add
Model.color()
method. [#88]
Bugfixes
- Fixed bug that caused non-reproducible behavior in
nest_lc()
even whennp.random.seed()
was called directly beforehand. [#102] - Fixed file I/O problems on Python 3 related to string encoding. [#83, #85, #102]
- Fixed problem with SDSS bandpasses being stored as integers internally, preventing them from being used with models with dust. [#100, #101]
- Fix problem where built-in source name and version strings were being dropped. [#82]
- Minor doc fixes.
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 tores.vparam_names
. - [DEPRECATION] In result of
nest_lc
,res.param_names
changed tores.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 andmodelcov=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 inastropy.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.
This is a minor bugfix release.
- Update CALSPEC FTP base URL to the "permanent" one rather than "current". This should provide a stable URL, so that spectra downloads do not fail (even if they will not necessarily be the most current).
- Bump Vega and BD+17 spectra versions to latest CALSPEC.
- Fix an issue with astropy.utils.data.download_file() that was preventing the astropy.utils.data.REMOTE_DATA configuration item from having an effect.
This is a minor bugfix release.
- Fix bug that caused
fit_lc()
andplot_lc()
to fail on numpy 1.8. - Correct behavior of
Model.minwave()
andModel.maxwave()
to include propagation effects. - Fix setup issue that caused cython to run even when C files already present.
This is a non-backwards-compatible release, due to changes in the way models are defined. These changes were made after feedback on the initial design.
The most major change is a new central class Model
used throughout
the pacakge. A Model
instance encompasses a Source
and zero or
more PropagationEffect
instances. This is so that different
source models (e.g., SALT2 or spectral time series models) can be
combined with arbitrary dust models. The best way to think about this
is Source
and PropagationEffect
define the rest-frame behavior
of a SN and dust, and a Model
puts these together to determine the
observer-frame behavior.
-
New classes
sncosmo.Model
: new main container classsncosmo.Source
: replaces existingModel
sncosmo.TimeSeriesSource
: replaces existingTimeSeriesModel
sncosmo.StretchSource
: replaces existingStretchModel
sncosmo.SALT2Source
: replaces existingSALT2Model
sncosmo.PropagationEffect
sncosmo.CCM89Dust
sncosmo.OD94Dust
sncosmo.F99Dust
-
New public functions
sncosmo.read_griddata_ascii
: Read file withphase wave flux
rowssncosmo.read_griddata_fits
sncosmo.write_griddata_fits
sncosmo.nest_lc
: Nested sampling parameter estimation of SN modelsncosmo.simulate_vol
(EXPERIMENTAL): simulation convenience function.
-
Built-ins
- updated SALT2 model URLs
- added SALT2 version 2.4 (Betoule et al 2014)
-
Improvements to
sncosmo.plot_lc
: flexibility and layout -
Many bugfixes
This is a release with mostly bugfixes but a few new features, designed to be backwards compatible with v0.2.0 ahead of API changes coming in the next version.
-
New functions:
sncosmo.get_ebv_from_map
: E(B-V) at given coordinates from SFD map.sncosmo.read_snana_ascii
: Read SNANA ascii format files.sncosmo.read_snana_fits
: Read SNANA FITS format files.sncosmo.read_snana_simlib
: Read SNANA ascii "SIMLIB" files.
-
New built-ins
- Added SN 2011fe Nearby Supernova Factory data to built-in models as
'2011fe'
- Added SN 2011fe Nearby Supernova Factory data to built-in models as
-
Renamed functions (some with enhancements), previously "experimental":
sncosmo.fit_lc
(previouslysncosmo.fit_model
)sncosmo.read_lc
(previouslysncosmo.readlc
)sncosmo.write_lc
(previouslysncosmo.writelc
)sncosmo.plot_lc
(previouslysncosmo.plotlc
)
-
New functions:
sncosmo.load_example_data
: Example photometric data.sncosmo.mcmc_lc
: Markov Chain Monte Carlo parameter estimation.sncosmo.animate_model
: Model animation using matplotlib.animation.
-
sncosmo.fit_lc
: Now uses the iminuit package for minimization by default. This requires the iminuit package to be installed, but the old minimizer (from scipy) can still be used by setting the keywordmethod='l-bfgs-b'
. -
sncosmo.plot_lc
: Ability to plot model synthetic photometry without observed data, using the syntax::>>> sncosmo.plot_lc(model=model, bands=['band1', 'band2'])
-
Photometric data format is now more flexible, allowing various names for table columns.
- Initial release.