File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/libecalc/domain/process Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,13 @@ def periods(self) -> Periods:
5757 def apply_to_model (self , compressor_model : CompressorTrainModel | CompressorWithTurbineModel ):
5858 rate_expr = self ._rate_expression if isinstance (self ._rate_expression , list ) else [self ._rate_expression ]
5959
60- if not isinstance (compressor_model , CompressorTrainCommonShaftMultipleStreamsAndPressures ):
60+ model_to_check = (
61+ compressor_model .compressor_model
62+ if isinstance (compressor_model , CompressorWithTurbineModel )
63+ else compressor_model
64+ )
65+
66+ if not isinstance (model_to_check , CompressorTrainCommonShaftMultipleStreamsAndPressures ):
6167 assert len (rate_expr ) == 1
6268 stream_day_rate = np .asarray (rate_expr [0 ].get_stream_day_values (), dtype = np .float64 )
6369 else :
You can’t perform that action at this time.
0 commit comments