Skip to content

Commit

Permalink
fix bug on electricity not included in non-reactive units
Browse files Browse the repository at this point in the history
  • Loading branch information
yalinli2 committed Oct 15, 2023
1 parent cdb4db5 commit 84c9299
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qsdsan/sanunits/_non_reactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
QSDsan: Quantitative Sustainable Design for sanitation and resource recovery systems
This module is developed by:
Yalin Li <[email protected]>
This module is under the University of Illinois/NCSA Open Source License.
Expand Down Expand Up @@ -92,11 +93,12 @@ def __init__(self, ID='', ins=None, outs=(), thermo=None, init_with='WasteStream
Copier.__init__(self, ID, ins, outs, thermo, init_with)
self.F_BM = {cost_item_name: 1}
self.CAPEX_dct = {cost_item_name: CAPEX}
self.power_utility(power)
self.power = power
self._add_OPEX = add_OPEX
for attr, val in kwargs.items():
setattr(self, attr, val)


def _cost(self):
self.baseline_purchase_costs.update(self.CAPEX_dct)
self.baseline_purchase_costs.update(self.CAPEX_dct)
self.power_utility.consumption = self.power

0 comments on commit 84c9299

Please sign in to comment.