PyPSA / atlite

Atlite: A Lightweight Python Package for Calculating Renewable Power Potentials and Time Series
https://atlite.readthedocs.io
254 stars 86 forks source link

Add helper function ``area`` and ``layout_from_area_density`` & allow auto chunks #328

Closed FabianHofmann closed 8 months ago

FabianHofmann commented 8 months ago

Motivation and Context

The area function is helpful for custom workflows, the same with the new layout function.

The auto chunking can help to accelerate the computation of the conversion functions.

Type of change

Checklist

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (5a1f00f) 72.34% compared to head (d5d2316) 72.49%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #328 +/- ## ========================================== + Coverage 72.34% 72.49% +0.14% ========================================== Files 19 19 Lines 1696 1705 +9 Branches 294 296 +2 ========================================== + Hits 1227 1236 +9 Misses 387 387 Partials 82 82 ``` | [Files](https://app.codecov.io/gh/PyPSA/atlite/pull/328?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PyPSA) | Coverage Δ | | |---|---|---| | [atlite/cutout.py](https://app.codecov.io/gh/PyPSA/atlite/pull/328?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PyPSA#diff-YXRsaXRlL2N1dG91dC5weQ==) | `76.26% <100.00%> (+1.13%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.