Skip to content

Commit 42d60c9

Browse files
committed
Revert "Merge changes from upstream incl. data layer (#363)"
This reverts commit 0a5e64c.
1 parent 0a5e64c commit 42d60c9

105 files changed

Lines changed: 6049 additions & 7847 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/pull_request_template.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,16 @@ Closes # (if applicable).
1717

1818
## Checklist
1919

20+
<!-- Remove what doesn't apply. -->
21+
2022
- [ ] I tested my contribution locally and it works as intended.
2123
- [ ] Code and workflow changes are sufficiently documented.
2224
- [ ] Changed dependencies are added to `pixi.toml` (using `pixi add <dependency-name>`).
2325
- [ ] Changes in configuration options are added in `config/config.default.yaml`.
2426
- [ ] Changes in configuration options are documented in `doc/configtables/*.csv`.
2527
- [ ] Changes in configuration options are added in `config/test/*.yaml`.
2628
- [ ] Open-TYNDP SPDX license header added to all touched files.
27-
- [ ] For new data sources or versions, [these instructions](https://pypsa-eur.readthedocs.io/en/latest/data_sources.html) have been followed.
29+
- [ ] Sources of newly added data are documented in `doc/data_sources.rst`.
2830
- [ ] New rules are documented in the appropriate `doc/*.rst` files.
2931
- [ ] A release note `doc/release_notes.rst` is added.
3032
- [ ] Major features are documented with up-to-date information in `README` and `doc/index.rst`.

.github/workflows/test.yaml

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,6 @@ jobs:
3030
shell: bash -l {0}
3131

3232
steps:
33-
- uses: actions/checkout@v6
34-
35-
- uses: dorny/paths-filter@v3
36-
id: filter
37-
with:
38-
filters: |
39-
src:
40-
- 'scripts/**'
41-
- 'rules/**'
42-
- 'data/**'
43-
- 'Snakefile'
44-
- 'config/**'
45-
- 'test/**'
46-
- 'pixi.toml'
47-
- 'pixi.lock'
48-
- '.github/workflows/test.yaml'
49-
5033
- name: Free up disk space
5134
run: |
5235
echo "Initial disk space"
@@ -57,12 +40,10 @@ jobs:
5740
sudo docker builder prune -a --force
5841
echo "Final disk space"
5942
df -h
60-
- name: Skip - no source changes
61-
if: steps.filter.outputs.src != 'true' && github.event_name != 'schedule'
62-
run: echo "Skipping tests because no source code changes detected"
43+
44+
- uses: actions/checkout@v6
6345

6446
- name: Setup Pixi
65-
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule'
6647
uses: prefix-dev/setup-pixi@v0.9.3
6748
with:
6849
pixi-version: v0.59.0
@@ -72,60 +53,49 @@ jobs:
7253
environments: open-tyndp
7354

7455
- name: Setup cache keys
75-
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule'
7656
run: |
7757
echo "WEEK=$(date +'%Y%U')" >> $GITHUB_ENV # data and cutouts
7858
79-
- uses: actions/cache@v5
80-
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule'
59+
- uses: actions/cache@v4
8160
with:
8261
path: |
8362
data
8463
cutouts
8564
key: data-cutouts-${{ env.WEEK }}
8665

87-
- name: Restore git-tracked files in data/
88-
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule'
89-
run: git checkout HEAD -- data/
90-
9166
- name: Run pylint check on scripts
92-
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule'
9367
# check for undefined variables to reuse functions across scripts
9468
run: |
9569
pixi run pylint --disable=all --enable=E0601,E0606 --output-format=parseable scripts/add_* scripts/prepare_* scripts/solve_*
9670
9771
- name: Run snakemake test workflows (sb)
98-
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule'
9972
env:
10073
SNAKEMAKE_STORAGE_CACHED_HTTP_CACHE: ""
10174
SNAKEMAKE_STORAGE_CACHED_HTTP_SKIP_REMOTE_CHECKS: "1"
10275
run: |
10376
pixi run -e open-tyndp tyndp-sb-test
10477
10578
- name: Run snakemake test workflows (cba)
106-
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule'
10779
env:
10880
SNAKEMAKE_STORAGE_CACHED_HTTP_CACHE: ""
10981
SNAKEMAKE_STORAGE_CACHED_HTTP_SKIP_REMOTE_CHECKS: "1"
11082
run: |
11183
pixi run -e open-tyndp tyndp-cba-test
11284
11385
- name: Run snakemake test workflows (upstream)
114-
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule'
11586
env:
11687
SNAKEMAKE_STORAGE_CACHED_HTTP_CACHE: ""
11788
SNAKEMAKE_STORAGE_CACHED_HTTP_SKIP_REMOTE_CHECKS: "1"
11889
run: |
11990
pixi run -e open-tyndp integration-tests
12091
12192
- name: Run unit tests
122-
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule'
12393
run: |
12494
pixi run -e open-tyndp unit-tests
12595
12696
- name: Upload artifacts
12797
if: always()
128-
uses: actions/upload-artifact@v6
98+
uses: actions/upload-artifact@v5
12999
with:
130100
name: results-${{ matrix.os }}
131101
path: |

.github/workflows/update-lockfile.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
pixi workspace export conda-environment -e default envs/environment.yaml -n pypsa-eur
7777
7878
- name: Upload artifacts
79-
uses: actions/upload-artifact@v6
79+
uses: actions/upload-artifact@v5
8080
with:
8181
name: lockfiles
8282
path: |
@@ -107,12 +107,12 @@ jobs:
107107
steps:
108108
- uses: actions/checkout@v6
109109
- name: Download all artifacts
110-
uses: actions/download-artifact@v7
110+
uses: actions/download-artifact@v6
111111
with:
112112
name: lockfiles
113113

114114
- name: Create Pull Request
115-
uses: peter-evans/create-pull-request@v8
115+
uses: peter-evans/create-pull-request@v7
116116
with:
117117
token: ${{ secrets.GITHUB_TOKEN }}
118118
branch: update-locked-environment

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@
55

66
master
77

8-
.env
9-
108
.snakemake*
119
.ipynb_checkpoints
1210
__pycache__
13-
*.egg-info
1411
*dconf
1512
gurobi.log
1613
.vscode
@@ -40,6 +37,7 @@ config/config.yaml
4037
config/scenarios.yaml
4138
config/config.private.yaml
4239

40+
dconf
4341
/data/links_p_nom.csv
4442
/data/*totals.csv
4543
/data/biomass*
@@ -52,6 +50,7 @@ config/config.private.yaml
5250
/data/transport_data.csv
5351
/data/.nfs*
5452
/data/retro/*
53+
/data/bundle/nuts*
5554
data/gas_network/scigrid-gas/
5655
data/costs_*.csv
5756
!/data/custom_costs.csv

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
# Run ruff to lint and format
1818
- repo: https://github.com/astral-sh/ruff-pre-commit
1919
# Ruff version.
20-
rev: v0.14.10
20+
rev: v0.13.3
2121
hooks:
2222
# Run the linter.
2323
- id: ruff
@@ -58,7 +58,7 @@ repos:
5858

5959
# Check for FSFE REUSE compliance (licensing)
6060
- repo: https://github.com/fsfe/reuse-tool
61-
rev: v6.2.0
61+
rev: v6.0.0
6262
hooks:
6363
- id: reuse-lint-file
6464

0 commit comments

Comments
 (0)