From a2ef99c8d4514db5cde10ca8e1e6f14022af5d4a Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Mon, 7 Oct 2024 15:12:26 +0200 Subject: [PATCH] Get rid of petab DeprecationWarnings (#93) Closes #90 --- petab_select/criteria.py | 4 ++-- petab_select/model.py | 4 ++-- petab_select/petab.py | 4 ++-- petab_select/ui.py | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/petab_select/criteria.py b/petab_select/criteria.py index 1f245a28..a976a0fb 100644 --- a/petab_select/criteria.py +++ b/petab_select/criteria.py @@ -1,8 +1,8 @@ """Implementations of model selection criteria.""" import numpy as np -import petab -from petab.C import OBJECTIVE_PRIOR_PARAMETERS, OBJECTIVE_PRIOR_TYPE +import petab.v1 as petab +from petab.v1.C import OBJECTIVE_PRIOR_PARAMETERS, OBJECTIVE_PRIOR_TYPE import petab_select diff --git a/petab_select/model.py b/petab_select/model.py index 1cf082b2..871a6e2c 100644 --- a/petab_select/model.py +++ b/petab_select/model.py @@ -5,10 +5,10 @@ from pathlib import Path from typing import Any, Dict, List, Optional, Tuple, Union -import petab +import petab.v1 as petab import yaml from more_itertools import one -from petab.C import ESTIMATE, NOMINAL_VALUE +from petab.v1.C import ESTIMATE, NOMINAL_VALUE from .constants import ( CRITERIA, diff --git a/petab_select/petab.py b/petab_select/petab.py index c827f93d..d121d4d6 100644 --- a/petab_select/petab.py +++ b/petab_select/petab.py @@ -1,9 +1,9 @@ from pathlib import Path from typing import List, Optional -import petab +import petab.v1 as petab from more_itertools import one -from petab.C import ESTIMATE, NOMINAL_VALUE +from petab.v1.C import ESTIMATE, NOMINAL_VALUE from .constants import PETAB_ESTIMATE_FALSE, TYPE_PARAMETER_DICT, TYPE_PATH diff --git a/petab_select/ui.py b/petab_select/ui.py index 204ffd35..a32f9b47 100644 --- a/petab_select/ui.py +++ b/petab_select/ui.py @@ -3,7 +3,7 @@ from typing import Dict, List, Optional, Union import numpy as np -import petab +import petab.v1 as petab from .candidate_space import CandidateSpace, FamosCandidateSpace from .constants import (