Skip to content

Commit

Permalink
Update load_data.py
Browse files Browse the repository at this point in the history
fix a bug to ignore static sheet when not including hydro
  • Loading branch information
Zhanwei-Liu authored Aug 4, 2023
1 parent 205610e commit c9b7f18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prepshot/load_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def get_attr(para):
None
"""
para["year"] = sorted(list(para["discount_factor"].keys()))
para["stcd"] = list({i[1] for i in para["static"].keys()})
if "static" in para.keys():
para["stcd"] = list({i[1] for i in para["static"].keys()})
para["hour"] = sorted({i[3] for i in para["demand"].keys() if isinstance(i[3], int)})
para["month"] = sorted({i[2] for i in para["demand"].keys() if isinstance(i[2], int)})
para["zone"] = list({i[0] for i in para["demand"].keys()})
Expand Down

0 comments on commit c9b7f18

Please sign in to comment.