Skip to content

Commit

Permalink
Typo in error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlee94 committed Jan 15, 2025
1 parent 6b9ea94 commit e54dcb5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions idaes/core/base/extended_control_volume0d.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ def add_isothermal_constraint(
raise ConfigurationError(
f"{self.name}: isothermal energy balance option requires that has_heat_transfer is False. "
"If you are trying to solve for heat duty to achieve isothermal operation, please use "
"a full energy balance as add a constraint to equate inlet and outlet temperatures."
"a full energy balance and add a constraint to equate inlet and outlet temperatures."
)
if has_work_transfer:
raise ConfigurationError(
f"{self.name}: isothermal energy balance option requires that has_work_transfer is False. "
"If you are trying to solve for work under isothermal operation, please use "
"a full energy balance as add a constraint to equate inlet and outlet temperatures."
"a full energy balance and add a constraint to equate inlet and outlet temperatures."
)
if has_enthalpy_transfer:
raise ConfigurationError(
Expand All @@ -93,7 +93,7 @@ def add_isothermal_constraint(
raise ConfigurationError(
f"{self.name}: isothermal energy balance option requires that has_heat_of_reaction is False. "
"If you are trying to solve for heat duty to achieve isothermal operation, please use "
"a full energy balance as add a constraint to equate inlet and outlet temperatures."
"a full energy balance and add a constraint to equate inlet and outlet temperatures."
)
if custom_term is not None:
raise ConfigurationError(
Expand Down
6 changes: 3 additions & 3 deletions idaes/core/base/extended_control_volume1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ def add_isothermal_constraint(
raise ConfigurationError(
f"{self.name}: isothermal energy balance option requires that has_heat_transfer is False. "
"If you are trying to solve for heat duty to achieve isothermal operation, please use "
"a full energy balance as add a constraint to equate inlet and outlet temperatures."
"a full energy balance and add a constraint to equate inlet and outlet temperatures."
)
if has_work_transfer:
raise ConfigurationError(
f"{self.name}: isothermal energy balance option requires that has_work_transfer is False. "
"If you are trying to solve for work under isothermal operation, please use "
"a full energy balance as add a constraint to equate inlet and outlet temperatures."
"a full energy balance and add a constraint to equate inlet and outlet temperatures."
)
if has_enthalpy_transfer:
raise ConfigurationError(
Expand All @@ -96,7 +96,7 @@ def add_isothermal_constraint(
raise ConfigurationError(
f"{self.name}: isothermal energy balance option requires that has_heat_of_reaction is False. "
"If you are trying to solve for heat duty to achieve isothermal operation, please use "
"a full energy balance as add a constraint to equate inlet and outlet temperatures."
"a full energy balance and add a constraint to equate inlet and outlet temperatures."
)
if custom_term is not None:
raise ConfigurationError(
Expand Down
6 changes: 3 additions & 3 deletions idaes/core/base/tests/test_extended_control_volume_0d.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def test_add_isothermal_constraint_heat_transfer():
ConfigurationError,
match="fs.cv: isothermal energy balance option requires that has_heat_transfer is False. "
"If you are trying to solve for heat duty to achieve isothermal operation, please use "
"a full energy balance as add a constraint to equate inlet and outlet temperatures.",
"a full energy balance and add a constraint to equate inlet and outlet temperatures.",
):
m.fs.cv.add_isothermal_constraint(has_heat_transfer=True)

Expand All @@ -115,7 +115,7 @@ def test_add_isothermal_constraint_work_transfer():
ConfigurationError,
match="fs.cv: isothermal energy balance option requires that has_work_transfer is False. "
"If you are trying to solve for work under isothermal operation, please use "
"a full energy balance as add a constraint to equate inlet and outlet temperatures.",
"a full energy balance and add a constraint to equate inlet and outlet temperatures.",
):
m.fs.cv.add_isothermal_constraint(has_work_transfer=True)

Expand Down Expand Up @@ -147,7 +147,7 @@ def test_add_isothermal_constraint_heat_of_rxn():
ConfigurationError,
match="fs.cv: isothermal energy balance option requires that has_heat_of_reaction is False. "
"If you are trying to solve for heat duty to achieve isothermal operation, please use "
"a full energy balance as add a constraint to equate inlet and outlet temperatures.",
"a full energy balance and add a constraint to equate inlet and outlet temperatures.",
):
m.fs.cv.add_isothermal_constraint(has_heat_of_reaction=True)

Expand Down
6 changes: 3 additions & 3 deletions idaes/core/base/tests/test_extended_control_volume_1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def test_add_isothermal_constraint_heat_transfer():
ConfigurationError,
match="fs.cv: isothermal energy balance option requires that has_heat_transfer is False. "
"If you are trying to solve for heat duty to achieve isothermal operation, please use "
"a full energy balance as add a constraint to equate inlet and outlet temperatures.",
"a full energy balance and add a constraint to equate inlet and outlet temperatures.",
):
m.fs.cv.add_isothermal_constraint(has_heat_transfer=True)

Expand All @@ -136,7 +136,7 @@ def test_add_isothermal_constraint_work_transfer():
ConfigurationError,
match="fs.cv: isothermal energy balance option requires that has_work_transfer is False. "
"If you are trying to solve for work under isothermal operation, please use "
"a full energy balance as add a constraint to equate inlet and outlet temperatures.",
"a full energy balance and add a constraint to equate inlet and outlet temperatures.",
):
m.fs.cv.add_isothermal_constraint(has_work_transfer=True)

Expand Down Expand Up @@ -178,7 +178,7 @@ def test_add_isothermal_constraint_heat_of_rxn():
ConfigurationError,
match="fs.cv: isothermal energy balance option requires that has_heat_of_reaction is False. "
"If you are trying to solve for heat duty to achieve isothermal operation, please use "
"a full energy balance as add a constraint to equate inlet and outlet temperatures.",
"a full energy balance and add a constraint to equate inlet and outlet temperatures.",
):
m.fs.cv.add_isothermal_constraint(has_heat_of_reaction=True)

Expand Down

0 comments on commit e54dcb5

Please sign in to comment.