Skip to content

Commit

Permalink
Fixing some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
emma58 committed May 20, 2024
1 parent 42ff293 commit fb78c89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pyomo/repn/parameterized_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@

class ParameterizedExprType(enum.IntEnum, metaclass=ExtendedEnumType):
__base_enum__ = ExprType
PSUEDO_CONSTANT = 50
PSEUDO_CONSTANT = 50


_PSEUDO_CONSTANT = ParameterizedExprType.PSUEDO_CONSTANT
_PSEUDO_CONSTANT = ParameterizedExprType.PSEUDO_CONSTANT
_CONSTANT = ParameterizedExprType.CONSTANT
_LINEAR = ParameterizedExprType.LINEAR
_GENERAL = ParameterizedExprType.GENERAL
Expand Down Expand Up @@ -196,7 +196,7 @@ def _before_var(visitor, child):
if child.fixed:
return False, (_CONSTANT, visitor.check_constant(child.value, child))
if child in visitor.wrt:
# psueudo-constant
# pseudo-constant
# We aren't treating this Var as a Var for the purposes of this walker
return False, (_PSEUDO_CONSTANT, child)
# This is a normal situation
Expand Down
2 changes: 1 addition & 1 deletion pyomo/repn/tests/test_parameterized_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def test_ANY_over_constant_division(self):
assertExpressionsEqual(self, repn.linear[id(m.x)], 1 + 1.5 * m.z)
self.assertEqual(repn.nonlinear, None)

def test_errors_propogate_nan(self):
def test_errors_propagate_nan(self):
m = ConcreteModel()
m.p = Param(mutable=True, initialize=0, domain=Any)
m.x = Var()
Expand Down

0 comments on commit fb78c89

Please sign in to comment.