Skip to content

Commit

Permalink
temporary fix for indexer phase (thermosteam recent updates)
Browse files Browse the repository at this point in the history
  • Loading branch information
yalinli2 committed Dec 10, 2024
1 parent dbf5616 commit ccb7314
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions qsdsan/_waste_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@ def __init__(self, dct, F_vol, MW, phase, phase_container):
def output(self, index, value):
'''Concentration flows, in mg/L (g/m3).'''
f_mass = value * self.MW[index]
phase = self.phase or self.phase_container.phase
if self.phase:
phase = self.phase
else:
try: phase = self.phase_container._phase
except: phase = self.phase_container
if phase != 'l':
raise AttributeError('Concentration only valid for liquid phase.')
V_sum = self.F_vol
Expand Down Expand Up @@ -186,7 +190,7 @@ def by_conc(self, TP):
check_data=False,
)
return conc
indexer.ChemicalMolarFlowIndexer.by_conc = by_conc
ChemicalMolarFlowIndexer.by_conc = by_conc
del by_conc


Expand Down

0 comments on commit ccb7314

Please sign in to comment.