Skip to content

Commit

Permalink
code: merge commit
Browse files Browse the repository at this point in the history
  • Loading branch information
finozzifa committed Dec 13, 2024
2 parents d7d8215 + 4363862 commit 1213ffb
Show file tree
Hide file tree
Showing 21 changed files with 3,026 additions and 929 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
on:
# push:
# branches:
# - main
#
schedule:
- cron: "0 5 * * 0"

jobs:
# contrib-readme-job:
# runs-on: ubuntu-latest
# name: A job to automate contrib in readme
# steps:
# - name: Contribute List
# uses: akhilmhdh/[email protected]
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
contrib-readme-job:
runs-on: ubuntu-latest
name: A job to automate contrib in readme
steps:
- name: Contribute List
uses: akhilmhdh/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
cancel-in-progress: true

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

jobs:
run-tests:
Expand All @@ -25,7 +25,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
os: [ubuntu, macos] #, windows]
include:
- os: ubuntu
env_file: envs/linux-pinned.yaml
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-pinned-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ jobs:
- name: Add SPDX header
if: ${{ matrix.suffix != 'windows' }}
run: |
SPDX_HEADER="# SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors\n# SPDX-License-Identifier: CC0-1.0\n"
SPDX_HEADER="# SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors\n#\n# SPDX-License-Identifier: CC0-1.0\n"
echo -e "$SPDX_HEADER" | cat - envs/${{ matrix.suffix }}-pinned.yaml > temp && mv temp envs/${{ matrix.suffix }}-pinned.yaml
- name: Add SPDX header (windows)
if: ${{ matrix.suffix == 'windows' }}
run: |
$SPDX_HEADER = "# SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur`r`n# SPDX-License-Identifier: CC0-1.0`r`n`r`n"
$SPDX_HEADER = "# SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur`r`n#`r`n# SPDX-License-Identifier: CC0-1.0`r`n`r`n"
$CurrentContent = Get-Content "envs/${{ matrix.suffix }}-pinned.yaml" -Raw
$NewContent = $SPDX_HEADER + $CurrentContent
$NewContent | Set-Content "envs/${{ matrix.suffix }}-pinned.yaml"
Expand Down
45 changes: 26 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ by

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

[![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)
[![Test workflows](https://github.com/pypsa-meets-earth/pypsa-earth/actions/workflows/test.yml/badge.svg)](https://github.com/pypsa-meets-earth/pypsa-earth/actions/workflows/test.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 @@ -268,15 +268,22 @@ The documentation is available here: [documentation](https://pypsa-earth.readthe
<sub><b>Koen Van Greevenbroek</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/hazemakhalek">
<img src="https://avatars.githubusercontent.com/u/87850910?v=4" width="100;" alt="hazemakhalek"/>
<br />
<sub><b>Hazem</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/energyLS">
<img src="https://avatars.githubusercontent.com/u/89515385?v=4" width="100;" alt="energyLS"/>
Expand All @@ -298,13 +305,6 @@ The documentation is available here: [documentation](https://pypsa-earth.readthe
<sub><b>Yerbol Akhmetov</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/DeniseGiub">
<img src="https://avatars.githubusercontent.com/u/113139589?v=4" width="100;" alt="DeniseGiub"/>
<br />
<sub><b>DeniseGiub</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/GbotemiB">
<img src="https://avatars.githubusercontent.com/u/48842684?v=4" width="100;" alt="GbotemiB"/>
Expand All @@ -313,10 +313,10 @@ The documentation is available here: [documentation](https://pypsa-earth.readthe
</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"/>
<a href="https://github.com/DeniseGiub">
<img src="https://avatars.githubusercontent.com/u/113139589?v=4" width="100;" alt="DeniseGiub"/>
<br />
<sub><b>Eddy Jalbout</b></sub>
<sub><b>DeniseGiub</b></sub>
</a>
</td>
</tr>
Expand Down Expand Up @@ -409,6 +409,13 @@ The documentation is available here: [documentation](https://pypsa-earth.readthe
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/arizeosalac">
<img src="https://avatars.githubusercontent.com/u/177637669?v=4" width="100;" alt="arizeosalac"/>
<br />
<sub><b>zeosalac</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"/>
Expand Down Expand Up @@ -444,15 +451,15 @@ The documentation is available here: [documentation](https://pypsa-earth.readthe
<sub><b>Stephen J Lee</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/rsparks3">
<img src="https://avatars.githubusercontent.com/u/30065966?v=4" width="100;" alt="rsparks3"/>
<br />
<sub><b>Ryan</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/ollie-bell">
<img src="https://avatars.githubusercontent.com/u/56110893?v=4" width="100;" alt="ollie-bell"/>
Expand Down Expand Up @@ -488,15 +495,15 @@ The documentation is available here: [documentation](https://pypsa-earth.readthe
<sub><b>Pietro Monticone</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/Netotse">
<img src="https://avatars.githubusercontent.com/u/89367243?v=4" width="100;" alt="Netotse"/>
<br />
<sub><b>Null</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/kma33">
<img src="https://avatars.githubusercontent.com/u/25573938?v=4" width="100;" alt="kma33"/>
Expand Down Expand Up @@ -532,15 +539,15 @@ The documentation is available here: [documentation](https://pypsa-earth.readthe
<sub><b>EmreYorat</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/AndreCNF">
<img src="https://avatars.githubusercontent.com/u/19359510?v=4" width="100;" alt="AndreCNF"/>
<br />
<sub><b>André Cristóvão Neves Ferreira</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/AlexanderMeisinger">
<img src="https://avatars.githubusercontent.com/u/91368938?v=4" width="100;" alt="AlexanderMeisinger"/>
Expand Down
7 changes: 6 additions & 1 deletion Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -1001,8 +1001,11 @@ rule solve_sector_networks:


rule prepare_ports:
params:
custom_export=config["custom_data"]["export_ports"],
output:
ports="data/ports.csv", # TODO move from data to resources
export_ports="resources/" + SECDIR + "export_ports.csv",
script:
"scripts/prepare_ports.py"

Expand Down Expand Up @@ -1158,6 +1161,8 @@ rule add_export:
store=config["export"]["store"],
store_capital_costs=config["export"]["store_capital_costs"],
export_profile=config["export"]["export_profile"],
export_endogenous=config["export"]["endogenous"],
endogenous_price=config["export"]["endogenous_price"],
snapshots=config["snapshots"],
costs=config["costs"],
contended_flag=config["build_shape_options"]["contended_flag"],
Expand All @@ -1166,7 +1171,7 @@ rule add_export:
geo_crs=config["crs"]["geo_crs"],
input:
overrides="data/override_component_attrs",
export_ports="data/export_ports.csv",
export_ports="resources/" + SECDIR + "export_ports.csv",
costs=COSTDIR + "costs_{planning_horizons}.csv",
ship_profile="resources/" + SECDIR + "ship_profile_{h2export}TWh.csv",
network=RESDIR
Expand Down
Loading

0 comments on commit 1213ffb

Please sign in to comment.