Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/supy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
"ValidationResult",
# Modern interface
"SUEWSSimulation",
"SUEWSForcing",
"SUEWSOutput",
# Version
"show_version",
"__version__",
Expand Down Expand Up @@ -153,6 +155,24 @@ def __getattr__(name):
except ImportError:
return None

if name == "SUEWSForcing":
try:
from .suews_forcing import SUEWSForcing

_lazy_cache[name] = SUEWSForcing
return _lazy_cache[name]
except ImportError:
return None

if name == "SUEWSOutput":
try:
from .suews_output import SUEWSOutput

_lazy_cache[name] = SUEWSOutput
return _lazy_cache[name]
except ImportError:
return None

# Version info
if name == "show_version":
from ._version import show_version
Expand Down
2 changes: 2 additions & 0 deletions src/supy/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ py.install_sources(
'_supy_module.py',
'_version.py',
'_version_scm.py',
'suews_forcing.py',
'suews_output.py',
'suews_sim.py',
'code2file.json',
'checker_rules_indiv.json',
Expand Down
Loading
Loading