From 84c92993fd0e6a3ca1f7a736647e00dccc1c0ac3 Mon Sep 17 00:00:00 2001 From: Yalin Date: Sun, 15 Oct 2023 09:25:30 -0400 Subject: [PATCH] fix bug on electricity not included in non-reactive units --- qsdsan/sanunits/_non_reactive.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qsdsan/sanunits/_non_reactive.py b/qsdsan/sanunits/_non_reactive.py index db5d4cde..4b3aec98 100644 --- a/qsdsan/sanunits/_non_reactive.py +++ b/qsdsan/sanunits/_non_reactive.py @@ -5,6 +5,7 @@ QSDsan: Quantitative Sustainable Design for sanitation and resource recovery systems This module is developed by: + Yalin Li This module is under the University of Illinois/NCSA Open Source License. @@ -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) \ No newline at end of file + self.baseline_purchase_costs.update(self.CAPEX_dct) + self.power_utility.consumption = self.power \ No newline at end of file