Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:

# Sort package imports alphabetically
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
rev: 6.0.0
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
Expand All @@ -27,10 +27,10 @@ repos:

# Find common spelling mistakes in comments and docstrings
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell
args: ['--ignore-regex="(\b[A-Z]+\b)"', '--ignore-words-list=fom,appartment,bage,ore,setis,tabacco,berfore,vor,pris,Dezember,GuD,Modell'] # Ignore capital case words, e.g. country codes
args: ['--ignore-regex="(\b[A-Z]+\b)"', '--ignore-words-list=fom,appartment,bage,ore,setis,tabacco,berfore,vor,pris,Dezember,GuD,Modell,Juni,Juli,Produktion,WorstCase'] # Ignore capital case words, e.g. country codes
types_or: [python, rst, markdown]
files: ^(scripts|doc)/

Expand All @@ -50,7 +50,7 @@ repos:

# Formatting with "black" coding style
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.10.0
rev: 25.1.0
hooks:
# Format Python files
- id: black
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_powerplants.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
Description
-----------

The configuration options ``electricity: powerplants_filter`` and ``electricity: custom_powerplants`` can be used to control whether data should be retrieved from the original powerplants database or from custom amendmends. These specify `pandas.query <https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.query.html>`_ commands.
The configuration options ``electricity: powerplants_filter`` and ``electricity: custom_powerplants`` can be used to control whether data should be retrieved from the original powerplants database or from custom amendments. These specify `pandas.query <https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.query.html>`_ commands.
In addition the configuration option ``electricity: everywhere_powerplants`` can be used to place powerplants with zero-initial capacity of certain fuel types at all substations.

1. Adding all powerplants from custom:
Expand Down
6 changes: 3 additions & 3 deletions scripts/pypsa-de/plot_ariadne_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def plot_nodal_elec_balance(
if condense_groups is not None:
nb = get_condense_sum(nb, condense_groups, condense_names)

## summaris low contributing carriers acccording to their sum over the period (threshold in GWh)
## summaris low contributing carriers according to their sum over the period (threshold in GWh)
techs_below_threshold = nb.columns[nb.abs().sum() < threshold].tolist()
if techs_below_threshold:
other = {tech: "other" for tech in techs_below_threshold}
Expand Down Expand Up @@ -2351,7 +2351,7 @@ def plot_elec_map_de(
patch_kw=dict(facecolor="lightgrey"),
legend_kw=legend_kw_circles,
)
# ensure cirlce is not outside the box
# ensure circle is not outside the box
legend = ax.get_legend()
legend.get_frame().set_boxstyle("square, pad=0.7")

Expand Down Expand Up @@ -2859,7 +2859,7 @@ def plot_h2_trade(
]
del _networks

# # for running with explicit networks not within repo structur (comment out load data and load regions)
# # for running with explicit networks not within repo structure (comment out load data and load regions)
# diry = "postnetworks-folder"
# file_list = os.listdir(diry)
# file_list.sort()
Expand Down
Loading