Skip to content

Commit

Permalink
global search and replace pyomo.core.expr.current -> pyomo.core.expr …
Browse files Browse the repository at this point in the history
…(ref pyomo PR #2910) (#1234)

* global search and replace pyomo.core.expr.current -> pyomo.core.expr

* changed setup.py to refer to appropriate tag

---------

Co-authored-by: strahlw <willstrahl32@gmail.com>
  • Loading branch information
strahlw and strahl21 authored Jul 28, 2023
1 parent 52d7d5c commit 3c95188
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion idaes/apps/uncertainty_propagation/sens.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
check_optimal_termination,
)
from pyomo.common.sorting import sorted_robust
from pyomo.core.expr.current import ExpressionReplacementVisitor
from pyomo.core.expr import ExpressionReplacementVisitor

from pyomo.common.modeling import unique_component_name
from pyomo.opt import SolverFactory, SolverStatus
Expand Down
2 changes: 1 addition & 1 deletion idaes/core/util/model_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from pyomo.environ import Block, Constraint, Expression, Objective, Var, value
from pyomo.dae import DerivativeVar
from pyomo.core.expr.current import identify_variables
from pyomo.core.expr import identify_variables
from pyomo.common.collections import ComponentSet


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from pyomo.core.base.constraint import Constraint
from pyomo.core.base.expression import Expression
from pyomo.core.base.param import Param
from pyomo.core.expr.current import sqrt
from pyomo.core.expr import sqrt

# Import IDAES cores
from idaes.core import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from pyomo.core.base.units_container import units as pyunits
from pyomo.core.base.reference import Reference
from pyomo.dae.diffvar import DerivativeVar
from pyomo.core.expr.current import log10
from pyomo.core.expr import log10
from pyomo.core.expr.numvalue import value as pyo_value

from idaes.core import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# Import Pyomo libraries
from pyomo.common.config import ConfigBlock, ConfigValue, In, Bool
from pyomo.environ import value, Var, Param, asin, cos, Reference
from pyomo.core.expr.current import Expr_if
from pyomo.core.expr import Expr_if
from pyomo.dae import DerivativeVar

# Import IDAES cores
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
)
from pyomo.dae import DerivativeVar
from pyomo.common.config import ConfigBlock, ConfigValue, In, Bool
from pyomo.core.expr.current import Expr_if
from pyomo.core.expr import Expr_if

# Import IDAES cores
from idaes.core import (
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def __getitem__(self, key):
# Put abstract (non-versioned) deps here.
# Concrete dependencies go in requirements[-dev].txt
install_requires=[
"pyomo>=6.6.1",
"pyomo @ https://github.com/IDAES/pyomo/archive/6.6.2.idaes.2023.07.28.zip",
"pint", # required to use Pyomo units
"networkx", # required to use Pyomo network
"numpy",
Expand Down

0 comments on commit 3c95188

Please sign in to comment.