From cc33da21fe42723c585fabf78fa28ba54f3f7ac2 Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Wed, 18 Dec 2024 22:56:16 +0100 Subject: [PATCH] Fix v2 import Deprecation warning (#346) Fixes this nonsensical warning: > E DeprecationWarning: Accessing `petab.v2` is deprecated and will be removed in the next major release. Please use `petab.v1.v2` instead. --- petab/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/petab/__init__.py b/petab/__init__.py index 81b58729..36110069 100644 --- a/petab/__init__.py +++ b/petab/__init__.py @@ -23,6 +23,8 @@ def __getattr__(name): return attr if name == "v1": return importlib.import_module("petab.v1") + if name == "v2": + return importlib.import_module("petab.v2") if name != "__path__": warn( f"Accessing `petab.{name}` is deprecated and will be removed in "