Skip to content

Commit

Permalink
move petab imports outside of try/except (#1355)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Weindl <dweindl@users.noreply.github.com>
  • Loading branch information
m-philipps and dweindl authored Apr 17, 2024
1 parent 2d05621 commit d178070
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions pypesto/petab/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@

import numpy as np
import pandas as pd
import petab
from petab.C import (
ESTIMATE,
NOISE_PARAMETERS,
OBSERVABLE_ID,
PREEQUILIBRATION_CONDITION_ID,
SIMULATION_CONDITION_ID,
)
from petab.models import MODEL_TYPE_SBML

from ..C import (
CENSORED,
Expand Down Expand Up @@ -50,16 +59,7 @@
import amici.petab.conditions
import amici.petab.parameter_mapping
import amici.petab.simulations
import petab
from amici.petab.import_helpers import check_model
from petab.C import (
ESTIMATE,
NOISE_PARAMETERS,
OBSERVABLE_ID,
PREEQUILIBRATION_CONDITION_ID,
SIMULATION_CONDITION_ID,
)
from petab.models import MODEL_TYPE_SBML
except ImportError:
amici = None

Expand Down

0 comments on commit d178070

Please sign in to comment.