From ffa51382c27d5d056c1a39a6126c87631881c6dd Mon Sep 17 00:00:00 2001 From: lionel kusch Date: Thu, 12 Dec 2024 15:42:10 +0100 Subject: [PATCH] Update __init__.py Add a function to access to the version when it's not in release. --- hidimstat/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hidimstat/__init__.py b/hidimstat/__init__.py index b83bbb3..5db8b1a 100644 --- a/hidimstat/__init__.py +++ b/hidimstat/__init__.py @@ -15,6 +15,11 @@ from .loco import LOCO from .permutation_importance import PermutationImportance +try: + from ._version import __version__ +except ImportError: + __version__ = "0+unknown" + __all__ = [ "ada_svr", "aggregate_quantiles",