Skip to content

Commit b3cc8d1

Browse files
author
cpschau
committed
Merge remote-tracking branch 'origin/main' into refine_dh_areas
2 parents fb91229 + 651dbc0 commit b3cc8d1

File tree

170 files changed

+6972
-16508
lines changed

Some content is hidden

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

170 files changed

+6972
-16508
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Bug Report
2+
description: Create a report if something doesn't work quite right.
3+
labels: ["needs triage"]
4+
type: "Bug"
5+
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Thanks for taking the time to fill out this bug report!
11+
Please do not post usage questions here. Ask them on the [PyPSA Discord server](https://discord.gg/AnuJBk23FU).
12+
13+
- type: checkboxes
14+
id: checks
15+
attributes:
16+
label: Version Checks (indicate both or one)
17+
options:
18+
- label: >
19+
I have confirmed this bug exists on the lastest
20+
[release](https://github.com/pypsa/PyPSA-DE/releases) of PyPSA-DE.
21+
- label: >
22+
I have confirmed this bug exists on the current
23+
[`master`](https://github.com/pypsa/PyPSA-DE/tree/master) branch of PyPSA-DE.
24+
25+
- type: textarea
26+
id: problem
27+
attributes:
28+
label: Issue Description
29+
description: >
30+
Please provide a description of the issue.
31+
validations:
32+
required: true
33+
34+
- type: textarea
35+
id: example
36+
validations:
37+
required: true
38+
attributes:
39+
label: Reproducible Example
40+
description: >
41+
Please provide a minimal reproduciable example. See how to [craft minimal bug reports](https://matthewrocklin.com/minimal-bug-reports).
42+
placeholder: >
43+
...
44+
45+
render: python
46+
47+
- type: textarea
48+
id: expected-behavior
49+
validations:
50+
required: true
51+
attributes:
52+
label: Expected Behavior
53+
description: >
54+
Please describe or show a code example of the expected behavior.
55+
56+
- type: textarea
57+
id: version
58+
attributes:
59+
label: Installed Versions
60+
description: >
61+
Please share information on your environment. Paste the output below. For conda ``conda env export`` and for pip ``pip freeze``.
62+
value: >
63+
<details>
64+
65+
Replace this line.
66+
67+
</details>
68+

.github/ISSUE_TEMPLATE/config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: PyPSA Discord server
4+
url: https://discord.gg/AnuJBk23FU
5+
about: Please ask and answer general usage questions here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
2-
name: Feature request
2+
name: Feature Request
33
about: Suggest an idea for this project
44
title: ''
5-
labels: enhancement
5+
labels: ["needs triage"]
6+
type: 'Feature'
67
assignees: ''
78

89
---
910

10-
<!-- Please do not post usage questions here. Ask them on the PyPSA mailing list: https://groups.google.com/forum/#!forum/pypsa -->
11+
<!-- Please do not post usage questions here. Ask them on the PyPSA Discord server: https://discord.gg/AnuJBk23FU -->
1112

1213
## Describe the feature you'd like to see
1314

.github/workflows/test.yaml

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@ jobs:
4040
- name: Setup env file path (ubuntu)
4141
if: matrix.os == 'ubuntu'
4242
run: |
43-
echo "env_file=envs/linux-pinned.yaml" >> $GITHUB_ENV
43+
# echo "env_file=envs/linux-pinned.yaml" >> $GITHUB_ENV
44+
echo "env_file=${{ env.BASE_ENV }}" >> $GITHUB_ENV # TODO Remove
4445
4546
- name: Setup env file path (macos and windows)
4647
if: matrix.os != 'ubuntu'
4748
run: |
4849
echo "env_file=envs/${{ matrix.os }}-pinned.yaml" >> $GITHUB_ENV
50+
echo "env_file=${{ env.BASE_ENV }}" >> $GITHUB_ENV # TODO Remove
4951
5052
- name: Use base env file if it was changed
5153
run: |
@@ -60,7 +62,7 @@ jobs:
6062
- name: Setup cache keys
6163
run: |
6264
echo "WEEK=$(date +'%Y%U')" >> $GITHUB_ENV # data and cutouts
63-
65+
6466
- uses: actions/cache@v4
6567
with:
6668
path: |
@@ -71,7 +73,7 @@ jobs:
7173
- uses: conda-incubator/setup-miniconda@v3
7274
with:
7375
miniforge-version: latest
74-
activate-environment: pypsa-eur
76+
activate-environment: pypsa-de
7577
channel-priority: strict
7678

7779
- name: Cache Conda env
@@ -84,13 +86,21 @@ jobs:
8486
- name: Update environment
8587
if: steps.cache-env.outputs.cache-hit != 'true'
8688
run: |
87-
conda env update -n pypsa-eur -f ${{ env.env_file }}
89+
conda env update -n pypsa-de -f ${{ env.env_file }}
8890
echo "Run conda list" && conda list
89-
90-
- name: Run pylint check on scripts
91-
# check for undefined variables to reuse functions across scripts
91+
92+
- name: Setup ixmp4 access
9293
run: |
93-
pylint --disable=all --enable=E0601 --output-format=parseable scripts/add_* scripts/prepare_* scripts/solve_*
94+
mkdir -p ~/.local/share/ixmp4/
95+
cat > ~/.local/share/ixmp4/credentials.toml << 'EOL'
96+
${{ secrets.IXMP4_ACCESS }}
97+
EOL
98+
shell: bash
99+
100+
# - name: Run pylint check on scripts
101+
# # check for undefined variables to reuse functions across scripts
102+
# run: |
103+
# pylint --disable=all --enable=E0601,E0606 --output-format=parseable scripts/add_* scripts/prepare_* scripts/solve_*
94104

95105
- name: Run snakemake test workflows
96106
run: |
@@ -138,7 +148,8 @@ jobs:
138148
echo "env_file=${{ env.BASE_ENV }}" >> $GITHUB_ENV
139149
else
140150
echo "Base env ${{ env.BASE_ENV }} not changed. Using pinned envs."
141-
echo "env_file=envs/linux-pinned.yaml" >> $GITHUB_ENV
151+
# echo "env_file=envs/linux-pinned.yaml" >> $GITHUB_ENV
152+
echo "env_file=${{ env.BASE_ENV }}" >> $GITHUB_ENV # TODO Remove
142153
fi
143154
144155
# Only run checks if package is not pinned
@@ -150,7 +161,7 @@ jobs:
150161
else
151162
echo "pinned=false" >> $GITHUB_ENV
152163
fi
153-
164+
154165
- name: Setup cache keys
155166
if: env.pinned == 'false'
156167
run: |
@@ -167,7 +178,7 @@ jobs:
167178
- uses: conda-incubator/setup-miniconda@v3
168179
if: env.pinned == 'false'
169180
with:
170-
activate-environment: pypsa-eur
181+
activate-environment: pypsa-de
171182

172183
- name: Cache Conda env
173184
if: env.pinned == 'false'
@@ -180,9 +191,17 @@ jobs:
180191
- name: Update environment
181192
if: env.pinned == 'false' && steps.cache-env.outputs.cache-hit != 'true'
182193
run: |
183-
conda env update -n pypsa-eur -f ${{ env.env_file }}
194+
conda env update -n pypsa-de -f ${{ env.env_file }}
184195
echo "Run conda list" && conda list
185196
197+
- name: Setup ixmp4 access
198+
run: |
199+
mkdir -p ~/.local/share/ixmp4/
200+
cat > ~/.local/share/ixmp4/credentials.toml << 'EOL'
201+
${{ secrets.IXMP4_ACCESS }}
202+
EOL
203+
shell: bash
204+
186205
- name: Install inhouse packages from master
187206
if: env.pinned == 'false'
188207
run: |
@@ -202,4 +221,4 @@ jobs:
202221
logs
203222
.snakemake/log
204223
results
205-
retention-days: 3
224+
retention-days: 3

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ config/config.yaml
3434
config/scenarios.yaml
3535
config/scenarios.automated.yaml
3636

37-
config.yaml
3837
config/config.yaml
3938

4039
dconf

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ci:
2+
autoupdate_schedule: monthly
3+
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v5.0.0
7+
hooks:
8+
- id: check-added-large-files
9+
args: ['--maxkb=2000']

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Changelog
2+
- CHP plants located in onshore regions without district heating are represented as EOP plants
3+
- updating technology cost data to v0.11.0
24
- add option for Offhsore NEP to delay projects by x years (CurPol and KN2045minus_WorstCase are delayed by one year)
35
- Force onwind south by increasing minimum capacity and decreasing capacity per sqkm
46
- Adjusting aviation demand (from Aladin) and emission accounting (only domestic aviation for national target)

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ install-pinned-macos: _conda_check
5454
# Run default tests
5555
test:
5656
set -e
57-
snakemake solve_elec_networks --configfile config/test/config.electricity.yaml
58-
snakemake --configfile config/test/config.overnight.yaml
59-
snakemake --configfile config/test/config.myopic.yaml
60-
snakemake make_summary_perfect --configfile config/test/config.perfect.yaml
61-
snakemake --configfile config/test/config.scenarios.yaml -n
57+
echo "Running tests..."
58+
echo "Build scenarios..."
59+
snakemake build_scenarios
60+
echo "Run DACH config..."
61+
snakemake ariadne_all --configfile=config/test/config.dach.yaml
6262
echo "All tests completed successfully."
6363

6464
unit-test:
@@ -83,4 +83,4 @@ reset:
8383
rm -r ./.snakemake || true; \
8484
rm ./config/config.yaml || true; \
8585
echo "Reset completed." \
86-
) || echo "Reset cancelled."
86+
) || echo "Reset cancelled."

0 commit comments

Comments
 (0)