Skip to content

Commit

Permalink
make recycle stream consistent for recycle specifications
Browse files Browse the repository at this point in the history
  • Loading branch information
yoelcortes committed Sep 4, 2023
1 parent d7a5468 commit 2c466b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions biosteam/_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -1630,13 +1630,14 @@ def recycle(self, recycle):
elif isa(recycle, piping.TemporaryStream):
self.method = 'fixed-point'
permanent = self.unit_set
for unit in permanent:
unit_path = self.unit_path
for unit in unit_path:
if len(unit.outs) != 1: continue
stream = unit.outs[0]
if stream.sink in permanent:
self._recycle = stream
return
for unit in permanent:
for unit in unit_path:
self._recycle = unit.outs[0]
else:
raise_recycle_type_error(recycle)
Expand Down

0 comments on commit 2c466b0

Please sign in to comment.