Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yoelcortes committed Jan 15, 2024
1 parent eb2fa9d commit aaa35b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion thermosteam/_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -1816,7 +1816,10 @@ def copy_flow(self,
self.mol[:] = other.mol
else:
self.empty()
CASs, values = zip(*[(i, j) for i, j in zip(other_chemicals.CASs, other_mol.nonzero_values())])
CASs = other_chemicals.CASs
dct = other_mol.dct
CASs = [CASs[i] for i in dct]
values = list(dct.values())
self.imol[CASs] = values
if remove:
if isinstance(other, tmo.MultiStream):
Expand Down

0 comments on commit aaa35b3

Please sign in to comment.