Skip to content

Commit 27bdc3b

Browse files
committed
remove deprecated facility recycle bug
1 parent 9cb9cdb commit 27bdc3b

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

biosteam/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
"""
1515
from __future__ import annotations
16-
__version__ = '2.52.9'
16+
__version__ = '2.52.10'
1717

1818
#: Chemical engineering plant cost index (defaults to 567.5 at 2017).
1919
CE: float = 567.5

biosteam/_system.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -795,8 +795,6 @@ class System:
795795
facilities :
796796
Offsite facilities that are simulated only after
797797
completing the path simulation.
798-
facility_recycle :
799-
Recycle stream between facilities and system path.
800798
N_runs :
801799
Number of iterations to converge the system.
802800
operating_hours :
@@ -949,7 +947,6 @@ def from_feedstock(cls,
949947
feeds: Optional[Iterable[Stream]]=None,
950948
facilities: Iterable[Facility]=(),
951949
ends: Iterable[Stream]=None,
952-
facility_recycle: Optional[Stream]=None,
953950
operating_hours: Optional[float]=None,
954951
**kwargs,
955952
):
@@ -1001,9 +998,6 @@ def from_units(cls, ID: Optional[str]="",
1001998
End streams of the system which are not products. Specify this
1002999
argument if only a section of the complete system is wanted, or if
10031000
recycle streams should be ignored.
1004-
facility_recycle :
1005-
Recycle stream between facilities and system path. This argument
1006-
defaults to the outlet of a BlowdownMixer facility (if any).
10071001
operating_hours :
10081002
Number of operating hours in a year. This parameter is used to
10091003
compute annualized properties such as utility cost and material cost
@@ -1055,7 +1049,7 @@ def from_segment(cls, ID: Optional[str]="", start: Optional[Unit]=None,
10551049
**kwargs)
10561050

10571051
@classmethod
1058-
def _from_network(cls, ID, network, facilities=(), facility_recycle=None,
1052+
def _from_network(cls, ID, network, facilities=(),
10591053
operating_hours=None, **kwargs):
10601054
"""
10611055
Create a System object from a network.
@@ -1069,21 +1063,18 @@ def _from_network(cls, ID, network, facilities=(), facility_recycle=None,
10691063
facilities : Iterable[Facility]
10701064
Offsite facilities that are simulated only after
10711065
completing the path simulation.
1072-
facility_recycle : [:class:`~thermosteam.Stream`], optional
1073-
Recycle stream between facilities and system path.
10741066
operating_hours : float, optional
10751067
Number of operating hours in a year. This parameter is used to
10761068
compute annualized properties such as utility cost and material cost
10771069
on a per year basis.
10781070
10791071
"""
10801072
facilities = Facility.ordered_facilities(facilities)
1081-
if facility_recycle is None: facility_recycle = find_blowdown_recycle(facilities)
10821073
isa = isinstance
10831074
ID_subsys = None if ID is None else ''
10841075
path = [(cls._from_network(ID_subsys, i) if isa(i, Network) else i)
10851076
for i in network.path]
1086-
return cls(ID, path, network.recycle, facilities, facility_recycle, None,
1077+
return cls(ID, path, network.recycle, facilities, None,
10871078
operating_hours, **kwargs)
10881079

10891080
def __init__(self,
@@ -1283,7 +1274,6 @@ def update_configuration(self,
12831274

12841275
def _update_configuration(self,
12851276
units: Optional[Sequence[str]]=None,
1286-
facility_recycle: Optional[Stream]=None,
12871277
):
12881278
old_IDs = [i.ID for i in self.subsystems]
12891279
# Warning: This method does not save the configuration.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
name='biosteam',
1212
packages=['biosteam'],
1313
license='MIT',
14-
version='2.52.9',
14+
version='2.52.10',
1515
description='The Biorefinery Simulation and Techno-Economic Analysis Modules',
1616
long_description=open('README.rst', encoding='utf-8').read(),
1717
author='Yoel Cortes-Pena',

0 commit comments

Comments
 (0)