-
-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
386 changed files
with
60,188 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Licensed under a 3-clause BSD style license - see LICENSE.rst | ||
|
||
# Packages may add whatever they like to this file, but | ||
# should keep this content at the top. | ||
# ---------------------------------------------------------------------------- | ||
from ._astropy_init import * # noqa | ||
|
||
# ---------------------------------------------------------------------------- | ||
|
||
__all__ = [] | ||
|
||
# ---------------------------------------------------------------------------- | ||
|
||
import sys | ||
import warnings | ||
|
||
# ---------------------------------------------------------------------------- | ||
|
||
if ("astropy.units" in sys.modules) or ("astropy.constants" in sys.modules): | ||
warnings.warn( | ||
"Astropy is already imported externally. Astropy should be imported" | ||
" after TARDIS." | ||
) | ||
else: | ||
from astropy import astronomical_constants, physical_constants | ||
|
||
physical_constants.set("codata2014") | ||
astronomical_constants.set("iau2012") | ||
|
||
# ---------------------------------------------------------------------------- | ||
|
||
from tardis.base import run_tardis | ||
from tardis.io.util import yaml_load_file as yaml_load |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Licensed under a 3-clause BSD style license - see LICENSE.rst | ||
import os | ||
|
||
__all__ = ['__version__', 'test'] | ||
|
||
try: | ||
from .version import version as __version__ | ||
except ImportError: | ||
__version__ = '' | ||
|
||
# Create the test function for self test | ||
from astropy.tests.runner import TestRunner | ||
|
||
test = TestRunner.make_test_runner_in(os.path.dirname(__file__)) |
Oops, something went wrong.