Skip to content

Commit

Permalink
bugfix [#61]: schedules revision number filter conversion to int
Browse files Browse the repository at this point in the history
  • Loading branch information
m-karo committed Dec 18, 2024
1 parent dc79494 commit b89f61f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions emf/loadflow_tool/scaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def query_hvdc_schedules(time_horizon: str,
schedules_df["out_domain"] = schedules_df["TimeSeries.out_Domain.mRID"].map(area_eic_map)

# Filter to the latest revision number
schedules_df.revisionNumber = schedules_df.revisionNumber.astype(int)
schedules_df = schedules_df[schedules_df.revisionNumber == schedules_df.revisionNumber.max()]

# TODO filter out data by reason code that take only verified tada
Expand Down Expand Up @@ -161,6 +162,7 @@ def query_acnp_schedules(time_horizon: str,
schedules_df["out_domain"] = schedules_df["TimeSeries.out_Domain.mRID"].map(area_eic_map)

# Filter to the latest revision number
schedules_df.revisionNumber = schedules_df.revisionNumber.astype(int)
schedules_df = schedules_df[schedules_df.revisionNumber == schedules_df.revisionNumber.max()]

# Get relevant structure and convert to dictionary
Expand Down

0 comments on commit b89f61f

Please sign in to comment.