Skip to content

Commit

Permalink
feat: import all datamodels into root package
Browse files Browse the repository at this point in the history
  • Loading branch information
zonca committed Sep 16, 2020
1 parent a30d7f1 commit 00ded4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iris_pipeline/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ class UnsupportedPythonError(Exception):
from .assign_wcs import *
from .resample import *

from .datamodels import monkeypatch_jwst_datamodels
from .datamodels import *
3 changes: 2 additions & 1 deletion iris_pipeline/datamodels/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@


__all__ = [
"monkeypatch_jwst_datamodels",
"IRISImageModel",
"TMTRampModel",
"TMTMaskModel",
Expand All @@ -25,7 +26,7 @@
"TMTReferenceFileModel",
]

_all_models = __all__
_all_models = __all__[1:]
_local_dict = locals()
_defined_models = {k: _local_dict[k] for k in _all_models}

Expand Down

0 comments on commit 00ded4a

Please sign in to comment.