Skip to content

Commit

Permalink
Changed expected to expected_fh
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinzb56 committed Jan 14, 2025
1 parent 2a06fdf commit eebe550
Show file tree
Hide file tree
Showing 386 changed files with 60,188 additions and 3 deletions.
33 changes: 33 additions & 0 deletions __init__.py
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
14 changes: 14 additions & 0 deletions _astropy_init.py
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__))
Loading

0 comments on commit eebe550

Please sign in to comment.