Skip to content

Commit

Permalink
fix bug related to SanUnit.add_OPEX
Browse files Browse the repository at this point in the history
  • Loading branch information
yalinli2 committed Oct 18, 2024
1 parent bcfdc1a commit beda378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qsdsan/_sanunit.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ def results(self, with_units=True, include_utilities=True,
results = super().results(with_units, include_utilities,
include_total_cost, include_installed_cost,
include_zeros, external_utilities, key_hook)
if not self.add_OPEX: self.add_OPEX = {'Additional OPEX': 0}
if not hasattr(self, 'add_OPEX'): self.add_OPEX = {'Additional OPEX': 0}
for k, v in self.add_OPEX.items():
if not with_units:
results.loc[(k, '')] = v
Expand Down

0 comments on commit beda378

Please sign in to comment.