From e0570d542f20e860baa1c2b2aa04052baecc5fd7 Mon Sep 17 00:00:00 2001 From: David Loiseaux Date: Fri, 4 Oct 2024 10:59:01 +0200 Subject: [PATCH] feat: better __init__ --- multipers/__init__.py | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/multipers/__init__.py b/multipers/__init__.py index 9e5adad..60a8271 100644 --- a/multipers/__init__.py +++ b/multipers/__init__.py @@ -1,13 +1,31 @@ +from importlib.metadata import version as _version + +__version__ = _version("multipers") # Doc -import multipers.io -import multipers.multiparameter_module_approximation -import multipers.simplex_tree_multi -import multipers.slicer -import multipers.data -import multipers.grids +from multipers import ( + data, + grids, + io, + multiparameter_module_approximation, + simplex_tree_multi, + slicer, +) from multipers._signed_measure_meta import signed_measure from multipers._slicer_meta import Slicer from multipers.multiparameter_module_approximation import module_approximation # Shortcuts from multipers.simplex_tree_multi import SimplexTreeMulti + +__all__ = [ + "signed_measure", + "module_approximation", + "Slicer", + "SimplexTreeMulti", + "data", + "grids", + "io", + "multiparameter_module_approximation", + "slicer", + "simplex_tree_multi", +]