Skip to content

Commit

Permalink
Prepare for version 2.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminrose committed Apr 27, 2023
1 parent f2ca708 commit b8404af
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 14 deletions.
15 changes: 15 additions & 0 deletions docs/history.rst
Expand Up @@ -8,6 +8,21 @@ sncosmo v1.0 will continue to work with any v1.x version. However,
exact results may differ between versions in the 1.x series. (For
example, due to changes in integration method.)

v2.10.0 (2023-04-27)
====================

Major Changes:

- Dropped support for Python <3.7 (#361)

- Add phase dependence option to PropagationEffect (#359)

Additions & Improvements:

- Add retrained SALT2 models from the DES and Pantheon+ teams (#355)

- Add TESS filter (#357)

v2.9.0 (2022-09-27)
===================

Expand Down
48 changes: 34 additions & 14 deletions sncosmo/__init__.py
Expand Up @@ -7,12 +7,22 @@

from astropy.config import ConfigItem, ConfigNamespace

__version__ = "2.9.0"


def test(package=None, test_path=None, args=None, plugins=None,
verbose=False, pastebin=None, pep8=False,
pdb=False, coverage=False, open_files=False, **kwargs):
__version__ = "2.10.0"


def test(
package=None,
test_path=None,
args=None,
plugins=None,
verbose=False,
pastebin=None,
pep8=False,
pdb=False,
coverage=False,
open_files=False,
**kwargs
):
"""
Run the tests using py.test. A proper set of arguments is constructed and
passed to `pytest.main`.
Expand Down Expand Up @@ -86,30 +96,40 @@ def test(package=None, test_path=None, args=None, plugins=None,
runner = TestRunner(os.path.dirname(__file__))

return runner.run_tests(
package=package, test_path=test_path, args=args,
plugins=plugins, verbose=verbose, pastebin=pastebin,
pep8=pep8, pdb=pdb,
coverage=coverage, open_files=open_files, **kwargs)
package=package,
test_path=test_path,
args=args,
plugins=plugins,
verbose=verbose,
pastebin=pastebin,
pep8=pep8,
pdb=pdb,
coverage=coverage,
open_files=open_files,
**kwargs
)


# Create default configurations. The file sncosmo.cfg should be
# kept in sync with the ConfigItems here.
class _Conf(ConfigNamespace):
"""Configuration parameters for sncosmo."""

data_dir = ConfigItem(
None,
"Directory where sncosmo will store and read downloaded data "
"resources. If None, ASTROPY_CACHE_DIR/sncosmo is created and "
"used. Example: data_dir = /home/user/data/sncosmo",
cfgtype='string(default=None)')
cfgtype="string(default=None)",
)
sfd98_dir = ConfigItem(
None,
"Directory containing SFD (1998) dust maps, with names: "
"'SFD_dust_4096_ngp.fits' and 'SFD_dust_4096_sgp.fits'. "
"Example: sfd98_dir = /home/user/data/sfd98",
cfgtype='string(default=None)')
remote_timeout = ConfigItem(
10.0, "Remote timeout in seconds.")
cfgtype="string(default=None)",
)
remote_timeout = ConfigItem(10.0, "Remote timeout in seconds.")


# Create an instance of the class we just defined.
Expand Down

0 comments on commit b8404af

Please sign in to comment.