11import pytest
22
33from libecalc .domain .process .compressor .core .train .stage import CompressorTrainStage
4- from libecalc .domain .process .entities .process_units .choke import Choke
54from libecalc .domain .process .entities .shaft import Shaft
65from libecalc .domain .process .process_solver .stream_constraint import PressureStreamConstraint
76from libecalc .domain .process .process_system .process_error import OutsideCapacityError
@@ -175,9 +174,6 @@ class StageProcessUnit(ProcessUnit):
175174 def __init__ (self , compressor_stage : CompressorTrainStage ):
176175 self ._compressor_stage = compressor_stage
177176
178- def get_shaft (self ) -> Shaft :
179- return self ._compressor_stage .compressor .shaft
180-
181177 def propagate_stream (self , inlet_stream : FluidStream ) -> FluidStream :
182178 result = self ._compressor_stage .evaluate (inlet_stream_stage = inlet_stream )
183179 if not result .within_capacity :
@@ -189,15 +185,11 @@ def propagate_stream(self, inlet_stream: FluidStream) -> FluidStream:
189185def process_system_factory (compressor_stage_factory , fluid_service ):
190186 def create_process_system (
191187 process_units : list [ProcessUnit ] | None = None ,
192- downstream_choke : Choke | None = None ,
193- upstream_choke : Choke | None = None ,
194188 ):
195189 if process_units is None :
196190 process_units = [simple_process_unit_factory (fluid_service )]
197191 return ProcessSystem (
198192 process_units = process_units ,
199- downstream_choke = downstream_choke ,
200- upstream_choke = upstream_choke ,
201193 )
202194
203195 return create_process_system
0 commit comments