Skip to content

Commit

Permalink
Get rid of petab DeprecationWarnings (#93)
Browse files Browse the repository at this point in the history
Closes #90
  • Loading branch information
dweindl authored Oct 7, 2024
1 parent 4e1679b commit a2ef99c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions petab_select/criteria.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions petab_select/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions petab_select/petab.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion petab_select/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit a2ef99c

Please sign in to comment.