Skip to content

Commit

Permalink
ensuring FeedZO and GasSpargedMembraneZO have no costing method
Browse files Browse the repository at this point in the history
  • Loading branch information
bknueven committed Jul 10, 2023
1 parent 0d40e38 commit 888f363
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions watertap/unit_models/zero_order/feed_zo.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,8 @@ def initialize_build(
f"{self.name} failed to initialize successfully. Please check "
f"the output logs for more information."
)

# no costing method
@property
def default_costing_method(self):
return lambda *args, **kwargs: None
5 changes: 5 additions & 0 deletions watertap/unit_models/zero_order/gas_sparged_membrane_zo.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ def solute_treated_equation(b, t, j):
self._Q = Reference(self.properties_in[:].flow_vol)
pump_electricity(self, self._Q)

# no costing method
@property
def default_costing_method(self):
return lambda *args, **kwargs: None


def calculate_scaling_factors_gas_extraction(self):
# Get default scale factors and do calculations from base classes
Expand Down

0 comments on commit 888f363

Please sign in to comment.