Skip to content

Commit

Permalink
Fix check if LV grid ID is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
birgits committed May 9, 2023
1 parent efd4af0 commit 74ea1e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edisgo/io/pypsa_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def _set_slack(grid):
pypsa_network.mode = "lv"

lv_grid_id = kwargs.get("lv_grid_id", None)
if not lv_grid_id:
if lv_grid_id is None:
raise ValueError(
"For exporting LV grids, ID or name of LV grid has to be provided"
"using parameter `lv_grid_id`."
Expand Down

0 comments on commit 74ea1e7

Please sign in to comment.