Skip to content

Commit 293c8c2

Browse files
committed
fix: removed temporary LPL schedule fix made before synchro
1 parent 756ce4e commit 293c8c2

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

emf/loadflow_tool/helper.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff 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
204190
def get_network_elements(network: pypowsybl.network,
205191
element_type: pypowsybl.network.ElementType,
206192
all_attributes: bool = True,

emf/loadflow_tool/scaler.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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'])

0 commit comments

Comments
 (0)