Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
473 commits
Select commit Hold shift + click to select a range
c728a6d
build env
pworschischek-aggmag May 27, 2025
605eed1
disbale pypsa-de gas bus function
pworschischek-aggmag May 27, 2025
2b88856
disable unreval gas buses
pworschischek-aggmag May 27, 2025
f7447e6
debug sessions
pworschischek-aggmag May 27, 2025
5264803
fixes after disabling untangle_gas_network
pworschischek-aggmag May 28, 2025
64f4365
fixes after disabling untangle_gas_network
pworschischek-aggmag May 28, 2025
c8387f9
enable gas network in config
pworschischek-aggmag May 28, 2025
a4c0d0e
improve env install script
pworschischek-aggmag Jun 2, 2025
138a843
enable AT10 clustering
pworschischek-aggmag Jun 2, 2025
37a2671
improve comments
pworschischek-aggmag Jun 2, 2025
8a15e6e
merge pypsa-at
pworschischek-aggmag Jun 2, 2025
1ebae01
Merge branch 'main' into feature-enable-gas-network
pworschischek-aggmag Jun 2, 2025
fa4d88d
fix heat production capactities
pworschischek-aggmag Jun 2, 2025
608eb35
refactor variable name
pworschischek-aggmag Jun 2, 2025
7a42424
fix views
pworschischek-aggmag Jun 2, 2025
b433b94
fix carbon balance
pworschischek-aggmag Jun 2, 2025
eaaad7e
fix electricity balance
pworschischek-aggmag Jun 2, 2025
83757e3
fix hydrogen balance
pworschischek-aggmag Jun 2, 2025
b1c0bbf
fix evals storage balances
pworschischek-aggmag Jun 3, 2025
9a75593
fix evals balances
pworschischek-aggmag Jun 3, 2025
c20c9ae
enable more sector technologies and prevent unreval buses
pworschischek-aggmag Jun 3, 2025
d3c58c6
sidestep ariadne variables scripts
pworschischek-aggmag Jun 3, 2025
314faec
refactor rule file name
pworschischek-aggmag Jun 3, 2025
8a48890
add rule for iamc variables
pworschischek-aggmag Jun 3, 2025
712dd4b
rebuild pixi env
pworschischek-aggmag Jun 3, 2025
2d92187
add missing color
pworschischek-aggmag Jun 3, 2025
c27a546
fix evals
pworschischek-aggmag Jun 3, 2025
820192c
add new script to expoirt iamx variables
pworschischek-aggmag Jun 3, 2025
89dfee9
extend workflow with plotting rule
pworschischek-aggmag Jun 3, 2025
5592d0b
export graphs as CSV for comaprisons
pworschischek-aggmag Jun 3, 2025
390ad0a
add supply and withdrawal to exported csvs
pworschischek-aggmag Jun 3, 2025
9085faa
revert exporting csv because its already in summary
pworschischek-aggmag Jun 3, 2025
abf2b39
export missing metrics
pworschischek-aggmag Jun 3, 2025
3219856
add checks
pworschischek-aggmag Jun 3, 2025
d41081e
disable gas compressing because its incompatible with gas network
pworschischek-aggmag Jun 4, 2025
248912c
simplify evals
pworschischek-aggmag Jun 4, 2025
8b3378c
simplify balances
pworschischek-aggmag Jun 5, 2025
07eae56
clean up
pworschischek-aggmag Jun 5, 2025
e928ab6
clean up
pworschischek-aggmag Jun 5, 2025
f6740c1
clean up
pworschischek-aggmag Jun 5, 2025
e0b3fdf
implement simple timeseries
pworschischek-aggmag Jun 5, 2025
7f175db
implement simple timeseries
pworschischek-aggmag Jun 5, 2025
fd5c547
implement simple timeseries
pworschischek-aggmag Jun 5, 2025
9c3a05e
simplify views
pworschischek-aggmag Jun 5, 2025
550901d
simplify views
pworschischek-aggmag Jun 5, 2025
41b5c41
simple capacities
pworschischek-aggmag Jun 6, 2025
b776557
gas production capacities
pworschischek-aggmag Jun 6, 2025
d29b122
prepare iamc variable export
pworschischek-aggmag Jun 11, 2025
dfc41e7
export iamc primary energy oil
pworschischek-aggmag Jun 13, 2025
28ce4b3
primary gas and liquids
pworschischek-aggmag Jun 13, 2025
6dabfbc
primary waste
pworschischek-aggmag Jun 13, 2025
044874d
pypsa-de update
pworschischek-aggmag Jun 16, 2025
63d45bf
H2 constraints and grid capacity updates
pworschischek-aggmag Jun 16, 2025
b5f8e12
prepare grid update
pworschischek-aggmag Jun 16, 2025
a09c734
check in grid data template
pworschischek-aggmag Jun 16, 2025
8ab57cc
split gas production and global imports
pworschischek-aggmag Jun 17, 2025
87faae5
fix metric index
pworschischek-aggmag Jun 17, 2025
76cc251
fix workflow and clean up
pworschischek-aggmag Jun 18, 2025
77a37f3
add pytest packages
pworschischek-aggmag Jun 18, 2025
fb78595
update run commands
pworschischek-aggmag Jun 18, 2025
616d3c5
layout modificatio functions
pworschischek-aggmag Jun 18, 2025
9f7bddd
fix rules
pworschischek-aggmag Jun 18, 2025
cc3e95d
adjust configuration
pworschischek-aggmag Jun 18, 2025
95c7050
write modification scripts
pworschischek-aggmag Jun 18, 2025
f6e6ace
structure variables for reusability
pworschischek-aggmag Jun 18, 2025
1852c7b
add primary coal
pworschischek-aggmag Jun 18, 2025
72af3c7
fix trade statistic
pworschischek-aggmag Jun 18, 2025
2b652ed
fix trade statistic
pworschischek-aggmag Jun 18, 2025
054a8a5
fix trade statistic
pworschischek-aggmag Jun 18, 2025
cdbf951
primary H2
pworschischek-aggmag Jun 18, 2025
30f8c41
implement hydro
pworschischek-aggmag Jun 18, 2025
aff41a0
implement solar
pworschischek-aggmag Jun 18, 2025
e49a067
clean up
pworschischek-aggmag Jun 18, 2025
8ebf7e4
add starship to environment
pworschischek-aggmag Jun 30, 2025
91697d8
fix hydro primary energy
pworschischek-aggmag Jul 3, 2025
3e68938
clean up
pworschischek-aggmag Jul 3, 2025
04791c8
add note on H2 plant retrofitting force
pworschischek-aggmag Jul 3, 2025
b821d9c
add primary metrics
pworschischek-aggmag Jul 3, 2025
a4cf4ad
primary heat
pworschischek-aggmag Jul 3, 2025
58af60c
combine primary variables
pworschischek-aggmag Jul 3, 2025
27b96d4
update docs references
pworschischek-aggmag Jul 4, 2025
fda8d41
ignore docs build and bumpy pypsa version
pworschischek-aggmag Jul 4, 2025
f606336
clean up
pworschischek-aggmag Jul 4, 2025
0ef3228
rework primary energy to myopic metrics
pworschischek-aggmag Jul 4, 2025
2092f6b
extractor abstraction
pworschischek-aggmag Jul 4, 2025
49dd550
use extractor
pworschischek-aggmag Jul 4, 2025
7b873fa
refactor to shorter names
pworschischek-aggmag Jul 4, 2025
5d0087d
refactor to new calls
pworschischek-aggmag Jul 4, 2025
94dce2b
heat primary
pworschischek-aggmag Jul 4, 2025
6a459de
drop generators and pick up bioliquids
pworschischek-aggmag Jul 4, 2025
f72197e
fix carrier names
pworschischek-aggmag Jul 4, 2025
1760598
api changes
pworschischek-aggmag Jul 4, 2025
4689d16
secondary energy
pworschischek-aggmag Jul 7, 2025
4122868
secondary heat
pworschischek-aggmag Jul 7, 2025
02ba213
secondary waste
pworschischek-aggmag Jul 7, 2025
021b21c
secondary energy
pworschischek-aggmag Jul 7, 2025
68e548c
clean up
pworschischek-aggmag Jul 8, 2025
7f8869d
implement single branch losses
pworschischek-aggmag Jul 8, 2025
b98c236
implement losses
pworschischek-aggmag Jul 8, 2025
d414c4a
secondary losses
pworschischek-aggmag Jul 8, 2025
2fbf897
link transformer
pworschischek-aggmag Jul 9, 2025
bbe904d
clean up primary strings
pworschischek-aggmag Jul 9, 2025
30ef504
use transforn links
pworschischek-aggmag Jul 9, 2025
7382bbd
all single input links
pworschischek-aggmag Jul 9, 2025
2edc0ee
move primary Links to primary variables
pworschischek-aggmag Jul 9, 2025
f09386e
correct biomass workaround
pworschischek-aggmag Jul 9, 2025
199a535
fix enthalpy heat
pworschischek-aggmag Jul 9, 2025
750dad6
fix enthalpy heat assertions
pworschischek-aggmag Jul 9, 2025
ab33a00
fix enthalpy solid biomass boiler workaround
pworschischek-aggmag Jul 9, 2025
0511b5b
multi input links
pworschischek-aggmag Jul 9, 2025
30e537a
test demand
pworschischek-aggmag Jul 9, 2025
f6c4525
primary oil fixes
pworschischek-aggmag Jul 10, 2025
d1da7b1
fix load supply edge cases
pworschischek-aggmag Jul 10, 2025
bcc820a
check stores and storage losses
pworschischek-aggmag Jul 10, 2025
1c3ebaf
check stores and storage losses
pworschischek-aggmag Jul 10, 2025
28c2ffe
accept store imbalances
pworschischek-aggmag Jul 11, 2025
4d1d9dc
fix multiple assignment of Coal CHP
pworschischek-aggmag Jul 11, 2025
b6e5046
debugging duplicated keys
pworschischek-aggmag Jul 11, 2025
5144cfd
clean up
pworschischek-aggmag Jul 11, 2025
faacf5a
add notes
pworschischek-aggmag Jul 11, 2025
0e6cb37
collect trade energy, fix signs, add waste unit
pworschischek-aggmag Jul 14, 2025
017ebd3
check balances
pworschischek-aggmag Jul 14, 2025
6ec9dea
track test script
pworschischek-aggmag Jul 14, 2025
c04f72f
tests for balances
pworschischek-aggmag Jul 14, 2025
fafd152
tests for balances
pworschischek-aggmag Jul 14, 2025
787bb7c
tests for balances
pworschischek-aggmag Jul 14, 2025
4b2e3d5
evals api changes and added test files
pworschischek-aggmag Jul 15, 2025
4cefdf0
clean tests
pworschischek-aggmag Jul 15, 2025
e177600
fix methanol balances
pworschischek-aggmag Jul 15, 2025
c4a6939
fix iamc balances
pworschischek-aggmag Jul 15, 2025
11d6548
clean up
pworschischek-aggmag Jul 15, 2025
82d8708
clean up
pworschischek-aggmag Jul 15, 2025
a107f45
clean up docstrings
pworschischek-aggmag Jul 15, 2025
9d40eaf
sankey layout
pworschischek-aggmag Jul 15, 2025
6879795
sankey mapping start
pworschischek-aggmag Jul 15, 2025
e7e46c1
sankey mapping and missing variables
pworschischek-aggmag Jul 15, 2025
8a107e4
checks and corrections
pworschischek-aggmag Jul 15, 2025
8f25c19
checks and corrections
pworschischek-aggmag Jul 15, 2025
e37a639
technology based sankey
pworschischek-aggmag Jul 16, 2025
fde8530
rename CC biogas for consistency
pworschischek-aggmag Jul 17, 2025
12f8990
sankey protoytyping
pworschischek-aggmag Jul 23, 2025
363ecf5
Merge remote-tracking branch 'pypsa-de/main' into merge-pypsa-de-main
pworschischek-aggmag Jul 23, 2025
e46138e
fix isclose logging
pworschischek-aggmag Jul 23, 2025
49fe8f8
merge updated pypsa-de config
pworschischek-aggmag Jul 23, 2025
27afb77
add missing config key
pworschischek-aggmag Jul 23, 2025
a7a63e1
Merge branch 'main' into merge-pypsa-de-main
pworschischek-aggmag Jul 23, 2025
84bdd78
simplify 1GW Ausbauziel AT lt EAG
pworschischek-aggmag Jul 23, 2025
6013865
Merge branch 'merge-pypsa-de-main'
pworschischek-aggmag Jul 23, 2025
bc742c6
migrate AT10 scenario from config to manual scenario
pworschischek-aggmag Jul 24, 2025
44ea6aa
fix weather year 2013
pworschischek-aggmag Jul 24, 2025
eef42a4
formatting
pworschischek-aggmag Jul 24, 2025
06ea011
defaul AT scenario using additional configuration layer
pworschischek-aggmag Jul 24, 2025
477ae2f
prepare split gas generators
pworschischek-aggmag Jul 24, 2025
fd44291
improve logging
pworschischek-aggmag Jul 24, 2025
83d4875
split natural gas generators by source
pworschischek-aggmag Jul 25, 2025
1e8409c
configurable cost factors and comments
pworschischek-aggmag Jul 28, 2025
7d9e0dc
know how notebook on capacity expansion
pworschischek-aggmag Jul 28, 2025
c36c8dd
fix git meta data
pworschischek-aggmag Jul 28, 2025
21e6a29
fix rulegraph rule
pworschischek-aggmag Jul 28, 2025
bf7c6dc
prepare load splitting
pworschischek-aggmag Jul 28, 2025
4fa767f
allow setting clustered region constraints
pworschischek-aggmag Jul 29, 2025
378b4aa
set austrian CO2 limits
pworschischek-aggmag Jul 29, 2025
4169504
add notes on electricity loads
pworschischek-aggmag Jul 29, 2025
66cfa5d
fix debuggin entry point for additional_functionality.py
pworschischek-aggmag Jul 29, 2025
2a52e97
major clean up
pworschischek-aggmag Jul 30, 2025
917ede8
remove unused code
pworschischek-aggmag Jul 30, 2025
ee9a55d
further clean up
pworschischek-aggmag Jul 30, 2025
6d8d715
version bump readthedocs python
pworschischek-aggmag Jul 30, 2025
1839290
fix pixi environment creation
pworschischek-aggmag Jul 30, 2025
b0b705d
ignore github configs
pworschischek-aggmag Jul 30, 2025
a944f5c
Merge branch 'main' into migrate-from-gitlab
pworschischek-aggmag Jul 30, 2025
2d8a243
keep github folder
pworschischek-aggmag Jul 30, 2025
23f7608
add devcontainer setting
pworschischek-aggmag Jul 30, 2025
3c73c24
Merge pull request #1 from AGGM-AG/migrate-from-gitlab
pworschischek-aggmag Jul 30, 2025
1eb525c
mount cutouts volume in devcontainer
pworschischek-aggmag Jul 30, 2025
868e475
reset clustering mode to bypass custom administrative clustering
pworschischek-aggmag Jul 30, 2025
7d1c607
allow missing mods config section
pworschischek-aggmag Jul 30, 2025
3e02325
hotfix missing logging attribute in external country_converter module
pworschischek-aggmag Jul 30, 2025
34e8b66
uncomment draft prints
pworschischek-aggmag Jul 30, 2025
4f78bcf
new at10 test config
pworschischek-aggmag Jul 30, 2025
f62087f
more flexibility for mods config for tests
pworschischek-aggmag Jul 30, 2025
2da054a
use at10 test config
pworschischek-aggmag Jul 30, 2025
142d953
add split gas generator carrier
pworschischek-aggmag Jul 30, 2025
cfe815f
fix missing input
pworschischek-aggmag Jul 30, 2025
102ef2c
merge main
pworschischek-aggmag Jul 30, 2025
b3630df
Update devcontainer.json
pworschischek-aggmag Jul 31, 2025
525efc3
Update devcontainer.json
pworschischek-aggmag Jul 31, 2025
81d2457
allow writing to cutouts volume
pworschischek-aggmag Jul 31, 2025
1bdc73a
fix comments
pworschischek-aggmag Jul 31, 2025
a1ee606
fix IAMC varibale export for tests
pworschischek-aggmag Jul 31, 2025
5b718b6
resolve straoge links
pworschischek-aggmag Jul 31, 2025
432e919
improve assertion message
pworschischek-aggmag Jul 31, 2025
123aef0
remove processing storage links as losses
pworschischek-aggmag Jul 31, 2025
a693a1b
remove old code
pworschischek-aggmag Jul 31, 2025
f6e9e63
fix NH3
pworschischek-aggmag Jul 31, 2025
058b601
fix unit tests
pworschischek-aggmag Jul 31, 2025
40e0ee2
move utils testsuite
pworschischek-aggmag Jul 31, 2025
68b5ea3
purge legacy test data
pworschischek-aggmag Jul 31, 2025
efe20ee
excldue CH4 from region regex matches
pworschischek-aggmag Jul 31, 2025
daf18ca
update test cases
pworschischek-aggmag Jul 31, 2025
e8e89c8
fix test mark syntax
pworschischek-aggmag Jul 31, 2025
4911022
fix validate rule command
pworschischek-aggmag Jul 31, 2025
9e9f07e
add custom marks
pworschischek-aggmag Jul 31, 2025
8d92f52
exlcude CH4 from region regex matches
pworschischek-aggmag Jul 31, 2025
1292abc
rename environment
pworschischek-aggmag Jul 31, 2025
2601f8e
add dependency and rename environment
pworschischek-aggmag Jul 31, 2025
2013269
Update locked environment files for all platforms
pworschischek-aggmag Jul 31, 2025
c8db481
add license
pworschischek-aggmag Jul 31, 2025
38117a5
Merge pull request #2 from AGGM-AG/update-locked-environment
pworschischek-aggmag Jul 31, 2025
f05a8b7
merge lockfile update
pworschischek-aggmag Jul 31, 2025
9685fd1
remove debugging line
pworschischek-aggmag Aug 1, 2025
74f1329
update workflows for pypsa-at repo
pworschischek-aggmag Aug 1, 2025
af1c25f
set up sourcery pre-commit
pworschischek-aggmag Aug 1, 2025
7761b39
add sourcery package and add pytest dependency
pworschischek-aggmag Aug 1, 2025
a682de4
Update locked environment files for all platforms
pworschischek-aggmag Aug 1, 2025
1154a6b
Merge pull request #3 from AGGM-AG/update-locked-environment
pworschischek-aggmag Aug 1, 2025
761f703
restore dev-env to build images
pworschischek-aggmag Aug 1, 2025
828b08b
deploy sourcery pre-commit hook
pworschischek-aggmag Aug 1, 2025
6261a63
remove integration tests until test strategy is in place
pworschischek-aggmag Aug 1, 2025
6c2b695
Merge branch 'main' of https://github.com/AGGM-AG/pypsa-at
pworschischek-aggmag Aug 1, 2025
39ebd8d
update readme for pypsa-at
pworschischek-aggmag Aug 1, 2025
83cb61d
add dependency sourcery for pre-commit hook
pworschischek-aggmag Aug 1, 2025
bc34d30
add modifications to docs
pworschischek-aggmag Aug 1, 2025
f3707c8
update dev-env docker
pworschischek-aggmag Aug 1, 2025
eef209f
fix image name variable
pworschischek-aggmag Aug 1, 2025
b252814
reference must be lower case
pworschischek-aggmag Aug 1, 2025
0a76e28
fix environment file
pworschischek-aggmag Aug 1, 2025
27746f3
Update locked environment files for all platforms
pworschischek-aggmag Aug 1, 2025
6439b64
deplox RTD
pworschischek-aggmag Aug 1, 2025
fe75171
update mkdocs config
pworschischek-aggmag Aug 1, 2025
5e3859b
Merge pull request #4 from AGGM-AG/update-locked-environment
pworschischek-aggmag Aug 1, 2025
2ff9d61
add missing mkdocs plugin
pworschischek-aggmag Aug 1, 2025
2e9a45e
Merge branch 'main' of https://github.com/AGGM-AG/pypsa-at
pworschischek-aggmag Aug 1, 2025
e52fc7b
fix filters selection to hide private members
pworschischek-aggmag Aug 1, 2025
72c12e5
remove html
pworschischek-aggmag Aug 1, 2025
5dc1c7e
selection keyword is no longer supported
pworschischek-aggmag Aug 1, 2025
07b91f2
fix site_url
pworschischek-aggmag Aug 1, 2025
ddac733
fix docs
pworschischek-aggmag Aug 4, 2025
fc586de
push images if they do not exist
pworschischek-aggmag Aug 4, 2025
d59123f
add image tag
pworschischek-aggmag Aug 4, 2025
1567ff1
fix workflow for missing images
pworschischek-aggmag Aug 4, 2025
864b334
fix scenario management
pworschischek-aggmag Aug 4, 2025
ed9c75f
skip conditional rules to push images
pworschischek-aggmag Aug 4, 2025
ebd978a
remove rules to push initial image
pworschischek-aggmag Aug 4, 2025
4139163
use AT10 scenario in config
pworschischek-aggmag Aug 4, 2025
7c1c226
clean up sankey prototype scripty
pworschischek-aggmag Aug 4, 2025
b486b20
add tolerance to assertion
pworschischek-aggmag Aug 4, 2025
849eced
remove slow sourcery pre-commit hook
pworschischek-aggmag Aug 4, 2025
6c0da03
resolve merge
pworschischek-aggmag Aug 11, 2025
98f94e4
Merge branch 'main' into pypsa-de-merge
pworschischek-aggmag Aug 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM debian:bookworm

ARG PIXI_VERSION=v0.50.2

RUN mkdir -p /mnt/storage

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates wget curl rsync git delta procps zsh build-essential python3-dev\
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Instal oh-my-zsh with git plugin and default theme
RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.2.1/zsh-in-docker.sh)" -- \
-t robbyrussell \
-p git

# Install starship
RUN curl -sS https://starship.rs/install.sh | sh -s -- -y

# Install pixi
RUN curl -L -o /usr/local/bin/pixi -fsSL --compressed "https://github.com/prefix-dev/pixi/releases/download/${PIXI_VERSION}/pixi-$(uname -m)-unknown-linux-musl" \
&& chmod +x /usr/local/bin/pixi \
&& pixi info
30 changes: 30 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "pypsa-at",
"build": {
"context": "..",
"dockerfile": "Dockerfile"
},
"mounts": [
"source=/mnt/storage,target=/mnt/storage,type=bind",
"source=cutouts,target=/IdeaProjects/pypsa-at/cutouts,type=volume"
],
"forwardPorts": [
8000,
2718
],
"portsAttributes": {
"8000": {"label": "mkdocs"},
"2718": {"label": "marimo"}
},
"postCreateCommand": "git fetch --unshallow",
"postAttachCommand": "",
"customizations": {
"jetbrains": {
"backend": "PyCharm"
}
},
"containerEnv": {
"SHELL": "/bin/zsh"
},
"remoteUser": "root"
}
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@

*.h5 filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
# SCM syntax highlighting & preventing 3-way merges
pixi.lock merge=binary linguist-language=YAML linguist-generated=true
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Bug report
about: Create a report if something doesn't work quite right.
title: ''
labels: bug
assignees: ''
---

<!-- Please do not post usage questions here. Ask them on the PyPSA mailing list: https://groups.google.com/forum/#!forum/pypsa -->

## Checklist

- [ ] I am using the current [`main`](https://github.com/AGGM-AG/pypsa-at/tree/main) branch, else please indicate.
- [ ] I am running on an up-to-date [`pypsa-at` environment](https://github.com/AGGM-AG/pypsa-at/blob/main/envs/environment.yaml). Update via `conda env update -f envs/environment.yaml`.

## Describe the Bug

*Please provide a description of what the bug is and add a minimal example/command for reproducing the bug.*

## Error Message

*If applicable, paste any terminal output to help illustrating your problem.*
*In some cases it may also be useful to share your list of installed packages: `conda list`.*

```
<paste here>
```
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ body:
options:
- label: >
I have confirmed this bug exists on the lastest
[release](https://github.com/pypsa/PyPSA-DE/releases) of PyPSA-DE.
[release](https://github.com/AGGM-AG/pypsa-at/releases) of PyPSA-AT.
- label: >
I have confirmed this bug exists on the current
[`master`](https://github.com/pypsa/PyPSA-DE/tree/master) branch of PyPSA-DE.
[`main`](https://github.com/AGGM-AG/pypsa-at/tree/main) branch of PyPSA-AT.

- type: textarea
id: problem
Expand Down
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: PyPSA Mailing List
url: https://groups.google.com/forum/#!forum/pypsa
about: Please ask and answer general usage questions here.
- name: Stackoverflow
url: https://stackoverflow.com/questions/tagged/pypsa
about: Please ask and answer code-related questions here.
8 changes: 4 additions & 4 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Before asking for a review for this PR make sure to complete the following checklist:

- [ ] Workflow with target rule `ariadne_all` completes without errors
- [ ] The logic of `export_ariadne_variables` has been adapted to the changes
- [ ] Workflow with target rule `all` completes without errors
- [ ] The logic of `export_iamc_variables` has been adapted to the changes
- [ ] One or several figures that validate the changes in the PR have been posted as a comment
- [ ] A brief description of the changes has been added to `Changelog.md`
- [ ] A brief description of the changes has been added to `changelog.md`
- [ ] The latest `main` has been merged into the PR
- [ ] The config has a new prefix of the format `YYYYMMDDdescriptive_title`
- [ ] The config has a new prefix of the format `YYYYMMDD_descriptive_title`
6 changes: 3 additions & 3 deletions .github/workflows/push-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on:
push:

branches:
- master
- main
workflow_dispatch:

env:
IMAGE_NAME: pypsa/eur-dev-env
IMAGE_NAME: aggm-ag/at-dev-env
BASE_ENV: envs/linux-64.lock.yaml

jobs:
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
docker push ghcr.io/${{ env.IMAGE_NAME }}:${{ github.sha }}

# Add latest tag if on main branch
if [ "${{ github.ref }}" == "refs/heads/master" ]; then
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
docker tag ghcr.io/${{ env.IMAGE_NAME }}:${{ github.sha }} ghcr.io/${{ env.IMAGE_NAME }}:latest
docker push ghcr.io/${{ env.IMAGE_NAME }}:latest
fi
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
activate-environment: pypsa-de
activate-environment: pypsa-at
channel-priority: strict

- name: Cache Conda env
Expand All @@ -89,7 +89,7 @@ jobs:
- name: Update environment
if: steps.cache-env.outputs.cache-hit != 'true'
run: |
conda env update -n pypsa-de -f ${{ env.env_file }}
conda env update -n pypsa-at -f ${{ env.env_file }}
echo "Run conda list" && conda list

- name: Run snakemake test workflows
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/update-pinned-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ jobs:
for file in envs/*.lock.yaml; do
if [ -f "$file" ]; then
echo "Processing $file"
if ! grep -q "name: pypsa-de" "$file"; then
# Insert name: pypsa-de before channels section
sed -i '7a name: pypsa-de' "$file"
if ! grep -q "name: pypsa-at" "$file"; then
# Insert name: pypsa-at before channels section
sed -i '7a name: pypsa-at' "$file"
else
echo "name: pypsa-de already exists in $file"
echo "name: pypsa-at already exists in $file"
fi
fi
done
Expand Down
17 changes: 6 additions & 11 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Validator Bot
on:
pull_request:
branches:
- master
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -23,9 +23,9 @@ jobs:
with:
step: run-self-hosted-validation
env_file: envs/environment.yaml
snakemake_config: config/config.de.yaml
snakemake_config: config/config.at.yaml
pre_command: "build_scenarios -f"
main_command: "ariadne_all"
main_command: "all"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check validation status
Expand All @@ -41,24 +41,19 @@ jobs:
name: Create report
needs: run-validation
if: |
github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.head.repo.full_name == github.repository &&
needs.run-validation.outputs.validation_failed != 'true'
runs-on: ubuntu-latest
steps:
- uses: PyPSA/pypsa-validator@v0.2.5
with:
step: create-comment
snakemake_config: config/config.de.yaml
snakemake_config: config/config.at.yaml
# The path starting from prefix in config
# For plot results/<prefix>/<scenario>/<plot_name>.png pass
# <scenario>/<plot_name>.png
plots: >
"
KN2045_Mix/ariadne/primary_energy.png
KN2045_Mix/ariadne/secondary_energy.png
KN2045_Mix/ariadne/final_energy.png
ariadne_comparison/Trade-Secondary-Energy-Hydrogen-Volume.png
ariadne_comparison/Trade-Secondary-Energy-Liquids-Hydrogen-Volume.png
ariadne_comparison/Capacity-Electricity-Solar.png
AT10_KN2040/evaluation/HTML/sankey_diagram_EU_2050.html
"
validator_key: ${{ secrets.VALIDATOR_KEY }}
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ gurobi.log
/data
/cutouts
/tmp
/public # mkdocs build
doc/_build

/scripts/old
Expand All @@ -49,6 +50,8 @@ dconf
/data/bundle/nuts*
data/gas_network/scigrid-gas/
data/costs_*.csv
# PyPSA-AT specific data files
#/data/austrian_transmission_capacities.csv

dask-worker-space/
publications.jrc.ec.europa.eu/
Expand Down Expand Up @@ -91,4 +94,12 @@ dev/*
# ai coding tools
CLAUDE.md
.claude/
.github/copilot-instructions.md
.github/copilot-instructions.md
#folder quick marimo evals
.marimo/JM_marimo_bs

# pixi environments
.pixi
*.egg-info
pixi.bak.*
__marimo__/
110 changes: 110 additions & 0 deletions .marimo/build_cluster_focus_weights.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
import marimo

__generated_with = "0.11.22"
app = marimo.App(width="medium")


@app.cell
def _():
import marimo as mo
import pandas as pd

return mo, pd


@app.cell
def _():
countries = [
"AL",
"AT",
"BA",
"BE",
"BG",
"CH",
"CZ",
"DE",
"DK",
"EE",
"ES",
"FI",
"FR",
"GB",
"GR",
"HR",
"HU",
"IE",
"IT",
"LT",
"LU",
"LV",
"ME",
"MK",
"NL",
"NO",
"PL",
"PT",
"RO",
"RS",
"SE",
"SI",
"SK",
"XK",
]
return (countries,)


@app.cell
def _(countries):
nodes_per_country = {
"DE": 16,
"AT": 10,
"IT": 3,
"DK": 2,
# "UK": 2,
# "ES": 2,
# "GR": 2
}
country_nodes = {c: nodes_per_country.get(c, 1) for c in countries}
country_nodes
return country_nodes, nodes_per_country


@app.cell
def _(country_nodes):
n_cluster = sum(country_nodes.values())
n_cluster
return (n_cluster,)


@app.cell
def _(country_nodes, n_cluster):
focus_weights = {
c: round(w / n_cluster - 5e-5, 4) for c, w in country_nodes.items()
}
focus_weights
return (focus_weights,)


@app.cell
def _(focus_weights):
focus_weights["AT"] += 1 - sum(focus_weights.values())
focus_weights["AT"] = round(focus_weights["AT"], 4)
focus_weights
return


@app.cell
def _(focus_weights):
assert sum(focus_weights.values()) == 1.0, (
f"Sum of focus weights is not 1.0 but {sum(focus_weights.values())}"
)
return


@app.cell
def _():
return


if __name__ == "__main__":
app.run()
Loading
Loading