Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX: New version of crate-ci/typos #1204

Merged
merged 1 commit into from
Jun 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,11 @@ suh = "suh"
ther = "ther"
# KNO3
KNO = "KNO"
# Equil == equilibrium
equil = "equil"
# Ignore astroid package
astroid = "astroid"
# delt == delta
delt = "delt"
# TEMPORARY - Remove after example update
upadate = "upadate"
upadate = "upadate"
2 changes: 1 addition & 1 deletion docs/reference_guides/core/util/model_statistics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The most commonly used methods are ``degrees_of_freedom`` and ``report_statistic
Degrees of Freedom Method
-------------------------

The ``degrees_of_freedom`` method calculates the number of degrees of freedom available in a given model. The calcuation is based on the number of unfixed variables which appear in active constraints, minus the number of active equality constraints in the model. Users should note that this method does not consider inequality or deactivated constraints, or variables which do not appear in active equality constraints.
The ``degrees_of_freedom`` method calculates the number of degrees of freedom available in a given model. The calculation is based on the number of unfixed variables which appear in active constraints, minus the number of active equality constraints in the model. Users should note that this method does not consider inequality or deactivated constraints, or variables which do not appear in active equality constraints.

.. autofunction:: idaes.core.util.model_statistics.degrees_of_freedom

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ note that if plates = `False`, the cost of trays is not included.

Base Cost of Platforms and ladders
""""""""""""""""""""""""""""""""""
The cost of platforms and ladders is based on the diamter and length in ft.
The cost of platforms and ladders is based on the diameter and length in ft.
Horizontal vessels (1: 3 < D < 12 ft):

.. math:: self.base\_cost\_platforms\_ladders = 20059*D^{0.20294}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ The equilibrium condition, the fugacity of the vapor and liquid phase are define

The equilibrium constraint is written as a generic constraint such that it can be extended easily for non-ideal gases and liquids. As this property package only supports an ideal gas, the fugacity coefficient (:math:`\phi_{i}`) for the vapor phase is 1 and hence the expression reduces to :math:`y_{i}P`. For the liquid phase, if the ideal option is selected then the activity coefficient (:math:`\nu_{i}`) is 1. If an activity coefficient model is selected then corresponding constraints are added to compute the activity coefficient.

Typically, the flash calculations are computed at a given temperature, :math:`T`. However, the flash calculations become trivial if the given conditions do not fall in the two phase region. For simulation only studies, the user may know a priori the condition of the stream but when the same set of equations are used for optimization, there is a high probablity that the specifications can transcend the phase envelope and hence the flash equations included may be trivial in the single phase region (i.e. liquid or vapor only). To circumvent this problem, property packages in IDAES that support VLE will compute the flash calculations at an "equilibrium" temperature :math:`T_{eq}`. The equilibrium temperature is computed as follows:
Typically, the flash calculations are computed at a given temperature, :math:`T`. However, the flash calculations become trivial if the given conditions do not fall in the two phase region. For simulation only studies, the user may know a priori the condition of the stream but when the same set of equations are used for optimization, there is a high probability that the specifications can transcend the phase envelope and hence the flash equations included may be trivial in the single phase region (i.e. liquid or vapor only). To circumvent this problem, property packages in IDAES that support VLE will compute the flash calculations at an "equilibrium" temperature :math:`T_{eq}`. The equilibrium temperature is computed as follows:

.. math:: T_{1} = max(T_{bubble}, T)
.. math:: T_{eq} = min(T_{1}, T_{dew})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Constraints

As mentioned above, the drum model imports a `HelmPhaseSeparator` and mixer models, specific documentation for these models can be obtained in:
Once the water enters the tank model the main equations calculate water velocity and pressure drop calculation due to gravity based on water level and contraction to downcomer.
Water level (drum_leve) is either fixed for steady state simulation or calculated for dynamic model (Dynamic = True)
Water level (drum_level) is either fixed for steady state simulation or calculated for dynamic model (Dynamic = True)

Main assumptions:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Constraints

As mentioned above, the drum model imports a `HelmPhaseSeparator` and mixer models, specific documentation for these models can be obtained in:
Once the water enters the tank model the main equations calculate water velocity and pressure drop calculation due to gravity based on water level and contraction to downcomer.
Water level (drum_leve) is either fixed for steady state simulation or calculated for dynamic model (Dynamic = True)
Water level (drum_level) is either fixed for steady state simulation or calculated for dynamic model (Dynamic = True)

Main assumptions:

Expand Down
2 changes: 1 addition & 1 deletion idaes/apps/grid_integration/bidder.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ def __init__(

forecaster: an initialized LMP forecaster object

fixed_to_schedule: If True, forece market simulator to give the same schedule.
fixed_to_schedule: If True, force market simulator to give the same schedule.

Returns:
None
Expand Down
4 changes: 2 additions & 2 deletions idaes/commands/util/download_bin.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def _download_package(fd, name, frm, to, platform):
raise Exception(f"{name} binaries are unavailable for {platform}")


def _verfiy_checksums(checksum, pname, ptar, ftar):
def _verify_checksums(checksum, pname, ptar, ftar):
# If release checksum is not False, nochecksum opt allows hash to be ignored
if checksum:
for n, p, f in zip(pname, ptar, ftar):
Expand Down Expand Up @@ -391,7 +391,7 @@ def download_binaries(
_download_package(fd, n, frm=u, to=p, platform=platform)

# Verify checksums
_verfiy_checksums(checksum, pname, ptar, ftar)
_verify_checksums(checksum, pname, ptar, ftar)

# Extract solvers
links = {}
Expand Down
2 changes: 1 addition & 1 deletion idaes/core/base/control_volume1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def material_flow_linking_constraints(b, t, x, p, j):
self.material_flow_dx = DerivativeVar(
self._flow_terms,
wrt=self.length_domain,
doc="Parital derivative of material flow " "wrt to normalized length",
doc="Partial derivative of material flow " "wrt to normalized length",
units=flow_units,
)

Expand Down
2 changes: 1 addition & 1 deletion idaes/core/base/costing_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ def initialize(self, *args, **kwargs):
Placeholder method for initialization
"""
# TODO: Implement an initialization method
# TODO: Need to have a general pupose method (block triangularisation?)
# TODO: Need to have a general purpose method (block triangularisation?)
# TODO: Should also allow registering custom methods

# Vars and Constraints
Expand Down
2 changes: 1 addition & 1 deletion idaes/core/dmf/tests/test_model_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def test_unit_conversion():
assert p_pa[0] == pytest.approx(101325, rel=1e-1)
assert unit == "kilogram / meter / second ** 2" # AKA Pa

# Test for unit conversion of gauge pressue with different atmosperic
# Test for unit conversion of gauge pressure with different atmosperic
# pressure values
p, unit = da.unit_convert(
p_psi, "psig", "atm", ambient_pressure=np.array([1, 1.1, 1.2])
Expand Down
2 changes: 1 addition & 1 deletion idaes/models_extra/column_models/condenser.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def build(self):
# outlet pressure is a spec set by the user.

# Get liquid and vapor phase objects from the property package
# to be used below. Avoids repition.
# to be used below. Avoids repetition.
_liquid_list = []
_vapor_list = []
for p in self.config.property_package.phase_list:
Expand Down
2 changes: 1 addition & 1 deletion idaes/models_extra/column_models/plate_heat_exchanger.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def build(self):
initialize=0.2045,
units=units_meta("length"),
domain=PositiveReals,
doc="Port diamter",
doc="Port diameter",
)

self.plate_therm_cond = Var(
Expand Down
2 changes: 1 addition & 1 deletion idaes/models_extra/column_models/reboiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def build(self):
)

# Get liquid and vapor phase objects from the property package
# to be used below. Avoids repition.
# to be used below. Avoids repetition.
_liquid_list = []
_vapor_list = []
for p in self.config.property_package.phase_list:
Expand Down
2 changes: 1 addition & 1 deletion idaes/models_extra/column_models/tray.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def build(self):
self._add_pressure_balance()

# Get liquid and vapor phase objects from the property package
# to be used below. Avoids repition.
# to be used below. Avoids repetition.
_liquid_list = []
_vapor_list = []
for p in self.config.property_package.phase_list:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ def set_inputs(m):
fs.fwh5.desuperheat.overall_heat_transfer_coefficient.fix(145)
fs.fwh5.cooling.overall_heat_transfer_coefficient.fix(675)
fs.fwh5.condense.tube.deltaP[:].fix(0)
# Inputs reqired for dynamic model
# Inputs required for dynamic model
fs.fwh5.condense.level.fix(0.275)
fs.fwh5.condense.heater_diameter.fix(1.4)
fs.fwh5.condense.vol_frac_shell.fix(0.675)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def _make_heat_exchanger_config(config):
@declare_process_block_class("HelmNtuCondenser", doc="Simple 0D condenser model.")
class HelmNtuCondenserData(UnitModelBlockData):
"""
Simple NTU condenser unit model. This model assumes the property pacakages
Simple NTU condenser unit model. This model assumes the property packages
specified are Helmholtz EOS type.
"""

Expand Down