Skip to content

Commit

Permalink
Merge branch 'pypsa-meets-earth:main' into update_pypsa_version
Browse files Browse the repository at this point in the history
  • Loading branch information
ekatef authored Nov 1, 2024
2 parents dbef78a + 1075456 commit 4cdc8d6
Show file tree
Hide file tree
Showing 20 changed files with 242 additions and 396 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- cron: "0 5 * * TUE"

env:
CACHE_NUMBER: 2 # Change this value to manually reset the environment cache
CACHE_NUMBER: 1 # Change this value to manually reset the environment cache

jobs:
build:
Expand Down Expand Up @@ -58,8 +58,8 @@ jobs:
key: data-cutouts-${{ env.WEEK }}-${{ env.CACHE_NUMBER }}


- name: Conda list
run: conda list
- name: Micromamba list
run: micromamba list

- name: Run Test
run: make test
Expand Down
19 changes: 11 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exclude: ^(LICENSES)

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
Expand All @@ -35,12 +35,15 @@ repos:
types_or: [python, rst, markdown]
files: ^(scripts|doc)/

# Make docstrings PEP 257 compliant
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: docformatter
args: ["--in-place", "--make-summary-multi-line", "--pre-summary-newline"]
# # Make docstrings PEP 257 compliant
# - repo: https://github.com/PyCQA/docformatter
# rev: v1.7.5
# hooks:
# - id: docformatter
# args: ["--in-place", "--make-summary-multi-line", "--pre-summary-newline"]
# entry: docformatter
# language: python
# types: [python]

- repo: https://github.com/keewis/blackdoc
rev: v0.3.9
Expand All @@ -49,7 +52,7 @@ repos:

# Formatting with "black" coding style
- repo: https://github.com/psf/black
rev: 24.8.0
rev: 24.10.0
hooks:
# Format Python files
- id: black
Expand Down
92 changes: 59 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ by

## Development Status: **Stable and Active**

[![Status Linux](https://github.com/pypsa-meets-earth/pypsa-earth/actions/workflows/ci-linux.yaml/badge.svg?branch=main&event=push)](https://github.com/pypsa-meets-earth/pypsa-earth/actions/workflows/ci-linux.yaml)
[![Status Mac](https://github.com/pypsa-meets-earth/pypsa-earth/actions/workflows/ci-mac.yaml/badge.svg?branch=main&event=push)](https://github.com/pypsa-meets-earth/pypsa-earth/actions/workflows/ci-mac.yaml)
[![Status Windows](https://github.com/pypsa-meets-earth/pypsa-earth/actions/workflows/ci-windows.yaml/badge.svg?branch=main&event=push)](https://github.com/pypsa-meets-earth/pypsa-earth/actions/workflows/ci-windows.yaml)
[![Test workflows](https://github.com/pypsa-meets-earth/pypsa-earth/actions/workflows/ci.yml/badge.svg)](https://github.com/pypsa-meets-earth/pypsa-earth/actions/workflows/ci.yml)
[![Documentation Status](https://readthedocs.org/projects/pypsa-earth/badge/?version=latest)](https://pypsa-earth.readthedocs.io/en/latest/?badge=latest)
![Size](https://img.shields.io/github/repo-size/pypsa-meets-earth/pypsa-earth)
[![License: AGPL v3](https://img.shields.io/badge/License-AGPLv3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
Expand Down Expand Up @@ -311,21 +309,57 @@ The documentation is available here: [documentation](https://pypsa-earth.readthe
<sub><b>Emmanuel Bolarinwa</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/Eddy-JV">
<img src="https://avatars.githubusercontent.com/u/75539255?v=4" width="100;" alt="Eddy-JV"/>
<br />
<sub><b>Eddy Jalbout</b></sub>
</a>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/doneachh">
<img src="https://avatars.githubusercontent.com/u/132910766?v=4" width="100;" alt="doneachh"/>
<br />
<sub><b>Anton Achhammer</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/Tomkourou">
<img src="https://avatars.githubusercontent.com/u/5240283?v=4" width="100;" alt="Tomkourou"/>
<br />
<sub><b>Thomas Kouroughli</b></sub>
</a>
</td></tr>
<tr>
</td>
<td align="center">
<a href="https://github.com/finozzifa">
<img src="https://avatars.githubusercontent.com/u/167071962?v=4" width="100;" alt="finozzifa"/>
<br />
<sub><b>Finozzifa</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/GridGrapher">
<img src="https://avatars.githubusercontent.com/u/127969728?v=4" width="100;" alt="GridGrapher"/>
<br />
<sub><b>GridGrapher</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/glenkiely-ieg">
<img src="https://avatars.githubusercontent.com/u/99269783?v=4" width="100;" alt="glenkiely-ieg"/>
<br />
<sub><b>Null</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/cpschau">
<img src="https://avatars.githubusercontent.com/u/124347782?v=4" width="100;" alt="cpschau"/>
<br />
<sub><b>Cschau</b></sub>
</a>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/Emre-Yorat89">
<img src="https://avatars.githubusercontent.com/u/62134151?v=4" width="100;" alt="Emre-Yorat89"/>
Expand Down Expand Up @@ -354,21 +388,6 @@ The documentation is available here: [documentation](https://pypsa-earth.readthe
<sub><b>Ekaterina-Vo</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/finozzifa">
<img src="https://avatars.githubusercontent.com/u/167071962?v=4" width="100;" alt="finozzifa"/>
<br />
<sub><b>Finozzifa</b></sub>
</a>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/cpschau">
<img src="https://avatars.githubusercontent.com/u/124347782?v=4" width="100;" alt="cpschau"/>
<br />
<sub><b>Cschau</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/Tooblippe">
<img src="https://avatars.githubusercontent.com/u/805313?v=4" width="100;" alt="Tooblippe"/>
Expand All @@ -377,15 +396,23 @@ The documentation is available here: [documentation](https://pypsa-earth.readthe
</a>
</td>
<td align="center">
<a href="https://github.com/doneachh">
<img src="https://avatars.githubusercontent.com/u/132910766?v=4" width="100;" alt="doneachh"/>
<a href="https://github.com/asolavi">
<img src="https://avatars.githubusercontent.com/u/131155817?v=4" width="100;" alt="asolavi"/>
<br />
<sub><b>Anton Achhammer</b></sub>
<sub><b>Null</b></sub>
</a>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/rajesh-ieg">
<img src="https://avatars.githubusercontent.com/u/120284682?v=4" width="100;" alt="rajesh-ieg"/>
<br />
<sub><b>Null</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/asolavi">
<img src="https://avatars.githubusercontent.com/u/131155817?v=4" width="100;" alt="asolavi"/>
<a href="https://github.com/danielelerede-oet">
<img src="https://avatars.githubusercontent.com/u/175011591?v=4" width="100;" alt="danielelerede-oet"/>
<br />
<sub><b>Null</b></sub>
</a>
Expand All @@ -403,8 +430,7 @@ The documentation is available here: [documentation](https://pypsa-earth.readthe
<br />
<sub><b>Stephen J Lee</b></sub>
</a>
</td></tr>
<tr>
</td>
<td align="center">
<a href="https://github.com/rsparks3">
<img src="https://avatars.githubusercontent.com/u/30065966?v=4" width="100;" alt="rsparks3"/>
Expand All @@ -418,7 +444,8 @@ The documentation is available here: [documentation](https://pypsa-earth.readthe
<br />
<sub><b>Null</b></sub>
</a>
</td>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/juli-a-ko">
<img src="https://avatars.githubusercontent.com/u/126512394?v=4" width="100;" alt="juli-a-ko"/>
Expand Down Expand Up @@ -446,8 +473,7 @@ The documentation is available here: [documentation](https://pypsa-earth.readthe
<br />
<sub><b>Pietro Monticone</b></sub>
</a>
</td></tr>
<tr>
</td>
<td align="center">
<a href="https://github.com/Netotse">
<img src="https://avatars.githubusercontent.com/u/89367243?v=4" width="100;" alt="Netotse"/>
Expand All @@ -461,7 +487,8 @@ The documentation is available here: [documentation](https://pypsa-earth.readthe
<br />
<sub><b>Katherine M. Antonio</b></sub>
</a>
</td>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/jessLryan">
<img src="https://avatars.githubusercontent.com/u/122939887?v=4" width="100;" alt="jessLryan"/>
Expand Down Expand Up @@ -489,8 +516,7 @@ The documentation is available here: [documentation](https://pypsa-earth.readthe
<br />
<sub><b>EmreYorat</b></sub>
</a>
</td></tr>
<tr>
</td>
<td align="center">
<a href="https://github.com/AndreCNF">
<img src="https://avatars.githubusercontent.com/u/19359510?v=4" width="100;" alt="AndreCNF"/>
Expand Down
4 changes: 2 additions & 2 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ config["scenario"]["unc"] = [
run = config.get("run", {})
RDIR = run["name"] + "/" if run.get("name") else ""
CDIR = RDIR if not run.get("shared_cutouts") else ""
SDIR = config["summary_dir"].strip("/") + f"/{RDIR}/"
RESDIR = config["results_dir"].strip("/") + f"/{RDIR}/"
SDIR = config["summary_dir"].strip("/") + f"/{RDIR}"
RESDIR = config["results_dir"].strip("/") + f"/{RDIR}"
COSTDIR = config["costs_dir"]

load_data_paths = get_load_paths_gegis("data", config)
Expand Down
30 changes: 28 additions & 2 deletions configs/bundle_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -269,17 +269,43 @@ databundles:
build_cutout: [all]

# cutouts bundle of the cutouts folder for the European continent
# Note: this includes nearly the entire north emisphere [long +-180, lat 1-85]. Size about 81GB (zipped)
# Coordinate bounds: [long -32 to 60, lat 1.5-74]
# Size about 17 GB (zipped)
bundle_cutouts_europe:
countries: [Europe]
category: cutouts
destination: "cutouts"
urls:
gdrive: https://drive.google.com/file/d/1Ew7rQT0VNBqJW1AUrOrOP2IJKSJS7Uoy/view?usp=sharing
gdrive: https://drive.google.com/file/d/17QS7qkuCiyj95Pr-ZQRl3qgp5CQE6HTy/view?usp=drive_link
output: [cutouts/cutout-2013-era5.nc]
disable_by_opt:
build_cutout: [all]

# cutouts bundle of the cutouts folder for Oceania continent
# Coordinate bounds: [min_x = 80, max_x = 180.0, min_y = -50, max_y = 20.]
# Size about 19 GB (zipped)
bundle_cutouts_oceania:
countries: [Oceania]
category: cutouts
destination: "cutouts"
urls:
gdrive: https://drive.google.com/file/d/1R8ELkXmW8jBBUFWRY0sbf-T14SJl4EUY/view?usp=sharing
output: [cutouts/cutout-2013-era5.nc]
disable_by_opt:
build_cutout: [all]

# cutouts bundle of the cutouts folder for the northern hemisphere
# Note: this includes nearly the entire northern emisphere [long +-180, lat 1-85]. Size about 81GB (zipped)
#bundle_cutouts_northern_hemisphere:
# countries: [NorthAmerica, Europe]
# category: cutouts
# destination: "cutouts"
# urls:
# gdrive: https://drive.google.com/file/d/1Ew7rQT0VNBqJW1AUrOrOP2IJKSJS7Uoy/view?usp=sharing
# output: [cutouts/cutout-2013-era5.nc]
# disable_by_opt:
# build_cutout: [all]

# cutouts bundle of the cutouts folder for the Asian continent, except Russia
# Size about 30GB (zipped)
bundle_cutouts_asia:
Expand Down
Loading

0 comments on commit 4cdc8d6

Please sign in to comment.