Skip to content

Commit 8d35116

Browse files
Add euro calliope methods (#1)
* Add scripts to combine HydroBASINs * Add powerplant location adjustment * Add inflow calculation. * Create timeseries per powerstation * Add capacity factor per shape generation. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 333ad9b commit 8d35116

62 files changed

Lines changed: 8141 additions & 1568 deletions

Some content is hidden

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

.copier-answers.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
# Changes here will be overwritten by Copier
22
# DO NOT MANUALLY MODIFY THIS FILE
3-
_commit: v0.1.0
3+
_commit: latest
44
_src_path: https://github.com/calliope-project/data-module-template.git
55
author_email: i.ruizmanuel@tudelft.nl
66
author_family_name: Ruiz Manuel
77
author_given_name: Ivan
88
github_org: calliope-project
99
license: Apache-2.0
10-
module_description: A module to calculate hydropower generation timeseries for facilities
11-
around the globe.
10+
module_description: A module to calculate hydropower inflow timeseries for facilities
11+
around the globe. Based on Euro-Calliope methods.
1212
module_long_name: clio - Hydropower module
1313
module_short_name: module_hydropower
14-
readthedocs: false
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. Linux Fedora 41, Windows 10...]
28+
- Version [e.g. v0.1.1]
29+
30+
**Additional context**
31+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/pull_request_template.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Fixes #
2+
3+
## Summary of changes in this pull request
4+
5+
*
6+
*
7+
*
8+
9+
## Reviewer checklist
10+
11+
* [ ] `INTERFACE.yaml` is up-to-date with all relevant user resources and results.
12+
* [ ] The integration example is up-to-date with a minimal use-case of the module.
13+
* [ ] Module documentation is up-to-date.

.github/workflows/check-latest-template-spec.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Check for changes in the upstream template. If changes are found, an issue is created
2+
name: Template check.
3+
on:
4+
schedule:
5+
- cron: '0 0 * * 1' # Runs at 00:00 UTC every Monday
6+
7+
jobs:
8+
copier-update:
9+
uses: calliope-project/data-module-template/.github/workflows/template-check-version.yml@latest

.github/workflows/pr-ci.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
11
name: CI
2-
32
on:
43
pull_request:
5-
branches: [ main ]
4+
branches:
5+
- "main"
66

77
jobs:
8-
build:
9-
name: Build
10-
runs-on: ${{ matrix.os }}
11-
strategy:
12-
fail-fast: false
13-
matrix:
14-
os: [ubuntu-latest, windows-latest, macos-latest]
15-
python-version: ["3.12"]
16-
steps:
17-
- uses: actions/checkout@v4
18-
- name: setup-pixi
19-
uses: prefix-dev/setup-pixi@v0.8.3
20-
- name: Run tests
21-
run: pixi run test
8+
ci-tests:
9+
uses: calliope-project/data-module-template/.github/workflows/template-pr-ci.yml@latest

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
release-workflow:
9+
uses: calliope-project/data-module-template/.github/workflows/template-release.yml@latest

.gitignore

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ gurobi.log
1818
### Notebooks
1919
.ipynb_checkpoints
2020

21-
# Show mutable folders, but do not commit resulting files
22-
resources/
23-
!resources/user/.gitkeep
24-
!resources/automatic/.gitkeep
25-
results/
26-
!results/.gitkeep
21+
# Ignore mutable folders
22+
**/logs/*
23+
**/resources/*
24+
**/results/*
25+
**/temp/*
26+
**/tmp/*
27+
!tests/integration/resources/automatic/
28+
!tests/integration/resources/user

.pre-commit-config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
- id: end-of-file-fixer
1212
# Repo quality
1313
- id: check-added-large-files
14-
args: [--enforce-all]
14+
args: [--enforce-all --maxkb=600]
1515
- id: forbid-submodules
1616
- id: check-case-conflict
1717
- id: check-illegal-windows-names
@@ -40,7 +40,8 @@ repos:
4040
- repo: https://github.com/codespell-project/codespell
4141
rev: v2.4.1
4242
hooks:
43-
- id: codespell
43+
- id: codespell
44+
files: .*\.(py|smk|md)$|^Snakefile$
4445

4546
ci: # https://pre-commit.ci/
4647
autoupdate_schedule: monthly

0 commit comments

Comments
 (0)