Skip to content

Commit

Permalink
Use pyomo.common.dependencies.attempt_import to resolve test_imports …
Browse files Browse the repository at this point in the history
…failure
  • Loading branch information
lbianchi-lbl committed Feb 12, 2025
1 parent 5e32e05 commit 38957e0
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@
"""
UI exports for 0D Fixed Bed TSA unit model.
"""

from pyomo.environ import ConcreteModel, SolverFactory, units
from idaes_flowsheet_processor import api
from pyomo.common.dependencies import attempt_import

api, flowsheet_processor_available = attempt_import(
"idaes_flowsheet_processor.api", defer_import=False
)

from idaes.core import FlowsheetBlock

Check notice on line 27 in idaes/models_extra/temperature_swing_adsorption/fixed_bed_tsa0d_ui.py

View workflow job for this annotation

GitHub Actions / Pylint

C0413 (wrong-import-position)

Import "from idaes.core import FlowsheetBlock" should be placed at the top of the module
from idaes.core.util.model_statistics import degrees_of_freedom

Check notice on line 28 in idaes/models_extra/temperature_swing_adsorption/fixed_bed_tsa0d_ui.py

View workflow job for this annotation

GitHub Actions / Pylint

C0413 (wrong-import-position)

Import "from idaes.core.util.model_statistics import degrees_of_freedom" should be placed at the top of the module
import idaes.core.util as iutil

Check notice on line 29 in idaes/models_extra/temperature_swing_adsorption/fixed_bed_tsa0d_ui.py

View workflow job for this annotation

GitHub Actions / Pylint

C0413 (wrong-import-position)

Import "import idaes.core.util as iutil" should be placed at the top of the module
Expand Down

0 comments on commit 38957e0

Please sign in to comment.