Skip to content

Commit

Permalink
Black&isort
Browse files Browse the repository at this point in the history
  • Loading branch information
nailend committed Feb 2, 2024
1 parent aacc888 commit 9b721f7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/egon/data/datasets/osmtgmod/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,11 @@ def osmtgmod(
# beware: comments in C-like style (such as /* comment */) arn't parsed!
sqlfile_without_comments = "".join(
[
line.lstrip().split("--")[0] + "\n"
if not line.lstrip().split("--")[0] == ""
else ""
(
line.lstrip().split("--")[0] + "\n"
if not line.lstrip().split("--")[0] == ""
else ""
)
for line in sqlfile.split("\n")
]
)
Expand Down Expand Up @@ -552,7 +554,9 @@ def to_pypsa():

# for scenario_name in ["'eGon2035'", "'eGon100RE'", "'status2019'"]:
scenario_list = egon.data.config.settings()["egon-data"]["--scenarios"]
scenario_list = [f"'{scn}'" if not scn[1] == "'" else scn for scn in scenario_list]
scenario_list = [
f"'{scn}'" if not scn[1] == "'" else scn for scn in scenario_list
]
for scenario_name in scenario_list:

# TODO maybe not needed anymore?
Expand Down

0 comments on commit 9b721f7

Please sign in to comment.