Skip to content

Commit

Permalink
Fix unused import warnings for ConcentrationPolarizationType and Mass…
Browse files Browse the repository at this point in the history
…TransferCoefficient
  • Loading branch information
wigging committed Apr 27, 2023
1 parent d143c6f commit 212059f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions watertap/unit_models/reverse_osmosis_0D.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@
_add_has_full_reporting,
)


__author__ = "Tim Bartholomew, Adam Atia"

# Allow users to import ConcentrationPolarizationType from here instead of
# from watertap.core, this also avoids an unused import warning from linters
ConcentrationPolarizationType = ConcentrationPolarizationType


@declare_process_block_class("ReverseOsmosis0D")
class ReverseOsmosisData(ReverseOsmosisBaseData):
Expand Down Expand Up @@ -72,7 +75,6 @@ def _add_deltaP(self):
add_object_reference(self, "deltaP", self.feed_side.deltaP)

def _add_mass_transfer(self):

units_meta = self.config.property_package.get_metadata().get_derived_units

# not in 1DRO
Expand Down
6 changes: 6 additions & 0 deletions watertap/unit_models/reverse_osmosis_1D.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@

__author__ = "Adam Atia"

# Allow users to import the ConcentrationPolarizationType enum and the
# MassTransferCoefficient enm from here instead of from watertap.core, this
# also avoids an unused import warning from linters
ConcentrationPolarizationType = ConcentrationPolarizationType
MassTransferCoefficient = MassTransferCoefficient

# Set up logger
_log = idaeslog.getLogger(__name__)

Expand Down

0 comments on commit 212059f

Please sign in to comment.