File tree Expand file tree Collapse file tree 2 files changed +0
-17
lines changed
Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -187,20 +187,6 @@ def parse_pypowsybl_report(report: str):
187187 return result
188188
189189
190- def temporary_decorator_change_litpol_to_non_hvdc (func ):
191- # TODO temporary decorator to be removed after synchro
192- def wrapper (* args , ** kwargs ):
193- result = func (* args , ** kwargs )
194- if 'isHvdc' in result .columns : # it means it was called for dangling lines
195- try :
196- result .loc [result .pairing_key == 'XEL_AL1P' , 'isHvdc' ] = ''
197- except Exception as e :
198- logger .error (f"Temporary decorator failed: { e } " )
199- return result
200- return wrapper
201-
202-
203- @temporary_decorator_change_litpol_to_non_hvdc
204190def get_network_elements (network : pypowsybl .network ,
205191 element_type : pypowsybl .network .ElementType ,
206192 all_attributes : bool = True ,
Original file line number Diff line number Diff line change @@ -222,9 +222,6 @@ def scale_balance(network: pp.network.Network,
222222 # Target HVDC setpoints
223223 target_hvdc_sp_df = pd .DataFrame (dc_schedules )
224224
225- # TODO [TEMPORARY] drop out LPL schedule until synchronization
226- target_hvdc_sp_df = target_hvdc_sp_df .drop (target_hvdc_sp_df [target_hvdc_sp_df .registered_resource == '10T-LT-PL-000037' ].index )
227-
228225 # Target AC net positions mapping
229226 target_acnp_df = pd .DataFrame (ac_schedules )
230227 target_acnp_df ['registered_resource' ] = target_acnp_df ['in_domain' ].where (target_acnp_df ['in_domain' ].notna (), target_acnp_df ['out_domain' ])
You can’t perform that action at this time.
0 commit comments