diff --git a/index_calculator/__init__.py b/index_calculator/__init__.py index 6514d0c..1d229ae 100644 --- a/index_calculator/__init__.py +++ b/index_calculator/__init__.py @@ -15,6 +15,7 @@ from ._tables import xjson # noqa from .index_calculator import IndexCalculator as index_calculator + def _get_version(): __version__ = "unknown" try: @@ -23,6 +24,7 @@ def _get_version(): pass return __version__ + __version__ = _get_version() preprocessing.__module__ = __name__ diff --git a/index_calculator/_ci_netcdfattrs.py b/index_calculator/_ci_netcdfattrs.py index bf7724d..2e00aee 100644 --- a/index_calculator/_ci_netcdfattrs.py +++ b/index_calculator/_ci_netcdfattrs.py @@ -3,6 +3,7 @@ import xclim as xc + def _get_version(): __version__ = "unknown" try: @@ -11,6 +12,7 @@ def _get_version(): pass return __version__ + __version__ = _get_version()