Merge pull request #650 from PyPSA/pre-commit-ci-update-config

[pre-commit.ci] pre-commit autoupdate
This commit is contained in:
Fabian Neumann 2023-04-25 07:03:49 +02:00 committed by GitHub
commit c133fe867d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 8 deletions

View File

@ -39,7 +39,7 @@ repos:
# Make docstrings PEP 257 compliant # Make docstrings PEP 257 compliant
- repo: https://github.com/PyCQA/docformatter - repo: https://github.com/PyCQA/docformatter
rev: v1.6.1-rc1 rev: v1.6.3
hooks: hooks:
- id: docformatter - id: docformatter
args: ["--in-place", "--make-summary-multi-line", "--pre-summary-newline"] args: ["--in-place", "--make-summary-multi-line", "--pre-summary-newline"]

View File

@ -56,9 +56,10 @@ logger = logging.getLogger(__name__)
def voronoi_partition_pts(points, outline): def voronoi_partition_pts(points, outline):
""" """
Compute the polygons of a voronoi partition of `points` within the Compute the polygons of a voronoi partition of `points` within the polygon
polygon `outline`. Taken from `outline`. Taken from
https://github.com/FRESNA/vresutils/blob/master/vresutils/graph.py https://github.com/FRESNA/vresutils/blob/master/vresutils/graph.py.
Attributes Attributes
---------- ----------
points : Nx2 - ndarray[dtype=float] points : Nx2 - ndarray[dtype=float]

View File

@ -10,8 +10,6 @@ The COP is a function of the temperature difference between source and
sink. sink.
The quadratic regression used is based on Staffell et al. (2012) The quadratic regression used is based on Staffell et al. (2012)
https://doi.org/10.1039/C2EE22653G. https://doi.org/10.1039/C2EE22653G.
""" """

View File

@ -27,8 +27,6 @@ def diameter_to_capacity(pipe_diameter_mm):
bar -> 21.7 GW CH4 pipe capacity (LHV) bar -> 21.7 GW CH4 pipe capacity (LHV)
Based on p.15 of Based on p.15 of
https://gasforclimate2050.eu/wp-content/uploads/2020/07/2020_European-Hydrogen-Backbone_Report.pdf https://gasforclimate2050.eu/wp-content/uploads/2020/07/2020_European-Hydrogen-Backbone_Report.pdf
""" """
# slopes definitions # slopes definitions