Skip to content

Commit

Permalink
Merge pull request #208 from pypsa-meets-earth/pre-commit-ci-update-c…
Browse files Browse the repository at this point in the history
…onfig

[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
energyLS authored Jul 18, 2023
2 parents 4dd3118 + 8cb0224 commit 42af1b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ repos:

# Formatting with "black" coding style
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.7.0
hooks:
# Format Python files
- id: black
Expand All @@ -45,7 +45,7 @@ repos:

# Do YAML formatting (before the linter checks it for misses)
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.9.0
rev: v2.10.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2', --preserve-quotes]
Expand Down
2 changes: 1 addition & 1 deletion scripts/prepare_sector_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def add_oil(n, costs):

# Set the "co2_emissions" of the carrier "oil" to 0, because the emissions of oil usage taken from the spatial.oil.nodes are accounted seperately (directly linked to the co2 atmosphere bus). Setting the carrier to 0 here avoids double counting. Be aware to link oil emissions to the co2 atmosphere bus.
n.carriers.loc["oil", "co2_emissions"] = 0
print("co2_emissions of oil set to 0 for testing") # TODO add logger.info
print("co2_emissions of oil set to 0 for testing") # TODO add logger.info

n.madd(
"Bus",
Expand Down

0 comments on commit 42af1b2

Please sign in to comment.