Skip to content

Commit b7e21e6

Browse files
Merge branch 'copilot/fix-recursion-error-spatial-aggregation' into copilot/fix-notimplementederror-xr-merge
2 parents 24346d4 + b98a963 commit b7e21e6

File tree

6 files changed

+99
-97
lines changed

6 files changed

+99
-97
lines changed

.github/renovate.json

Lines changed: 53 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,54 @@
1-
{
2-
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"config:recommended"
5-
],
6-
"schedule": [
7-
"after 10pm on tuesday",
8-
"before 6am on wednesday"
9-
],
10-
"rangeStrategy": "widen",
11-
"vulnerabilityAlerts": {
12-
"enabled": false
13-
},
14-
"osvVulnerabilityAlerts": false,
15-
"enabledManagers": [
16-
"pep621",
17-
"regex"
18-
],
19-
"pep621": {
20-
"managerFilePatterns": [
21-
"/(^|/)pyproject\\.toml$/"
22-
]
23-
},
24-
"customManagers": [
25-
{
26-
"customType": "regex",
27-
"managerFilePatterns": [
28-
"/(^|/)requirements_dev\\.yml$/"
29-
],
30-
"matchStrings": [
31-
"- (?<depName>[a-zA-Z0-9_.-]+) (?<currentValue>[><=!][^\\n]*)"
32-
],
33-
"packageNameTemplate": "conda-forge/{{{depName}}}",
34-
"datasourceTemplate": "conda",
35-
"versioningTemplate": "pep440"
36-
}
37-
],
38-
"ignoreDeps": [
39-
"sphinx",
40-
"sphinx_rtd_theme",
41-
"myst-parser",
42-
"ruff",
43-
"nbval",
44-
"pytest-xdist",
45-
"pytest-cov",
46-
"pytest",
47-
"ipykernel",
48-
"gurobi-logtools"
49-
],
50-
"packageRules": [
51-
{
52-
"matchManagers": [
53-
"pep621",
54-
"regex"
55-
],
56-
"groupName": "{{depName}}"
57-
}
58-
]
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended"
5+
],
6+
"schedule": [
7+
"after 10pm on tuesday",
8+
"before 6am on wednesday"
9+
],
10+
"rangeStrategy": "widen",
11+
"vulnerabilityAlerts": {
12+
"enabled": false
13+
},
14+
"osvVulnerabilityAlerts": false,
15+
"enabledManagers": [
16+
"pep621",
17+
"custom.regex"
18+
],
19+
"pep621": {
20+
"managerFilePatterns": [
21+
"/(^|/)pyproject\\.toml$/"
22+
]
23+
},
24+
"customManagers": [
25+
{
26+
"customType": "regex",
27+
"managerFilePatterns": [
28+
"/(^|/)requirements_dev\\.yml$/"
29+
],
30+
"matchStrings": [
31+
"- (?<depName>[a-zA-Z0-9_.-]+)[^\\n]*?(?<currentValue><=\\d[^\\n,]*)"
32+
],
33+
"packageNameTemplate": "conda-forge/{{{depName}}}",
34+
"datasourceTemplate": "conda",
35+
"versioningTemplate": "pep440"
36+
}
37+
],
38+
"ignoreDeps": [
39+
"sphinx",
40+
"sphinx_rtd_theme",
41+
"myst-parser",
42+
"sphinx-rtd-theme",
43+
"ruff",
44+
],
45+
"packageRules": [
46+
{
47+
"matchManagers": [
48+
"pep621",
49+
"custom.regex"
50+
],
51+
"groupName": "{{depName}}"
52+
}
53+
]
5954
}

.github/workflows/test_pull_dev.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,15 @@ jobs:
3838
fail-fast: false
3939
matrix:
4040
runner_tag: ["ubuntu-latest"]
41-
uses: FZJ-IEK3-VSA/.github/.github/workflows/_run_single_pypi_test.yml@main
41+
uses: FZJ-IEK3-VSA/.github/.github/workflows/_run_single_pypi_test_uv_miniforge.yml@main
4242
with:
4343
runner_tag: ${{ matrix.runner_tag }}
4444
ipynb_example_folder: "examples"
4545
python_version: ${{ needs.extract-python-versions.outputs.max_version }}
4646
optional_dependency_PyPI_tag: "[develop]"
4747
additional_conda_forge_dependencies: "glpk"
48+
multiprocessing_pytest_string: "-n auto"
49+
multiprocessing_example_string: "-n auto"
4850

4951
extract-min-versions:
5052
if: github.actor != 'renovate[bot]'

.github/workflows/test_pull_request_renovate_max_versions.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
extract-versions:
1414
name: Extract max versions of changed libraries
1515
needs: detect-changes
16-
if: needs.detect-changes.outputs.libraries != ''
16+
if: startsWith(github.head_ref, 'renovate/') && needs.detect-changes.outputs.libraries != ''
1717
uses: FZJ-IEK3-VSA/.github/.github/workflows/_extract_env_versions_matrix.yml@main
1818
with:
1919
libraries: ${{ needs.detect-changes.outputs.libraries }}
@@ -23,6 +23,7 @@ jobs:
2323
TestRenovateMaxVersions:
2424
name: Test ${{ matrix.dependencies.library_name }} ${{ matrix.dependencies.version }} (max)
2525
needs: extract-versions
26+
if: startsWith(github.head_ref, 'renovate/')
2627
strategy:
2728
fail-fast: false
2829
matrix:

.github/workflows/test_push.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,21 @@ jobs:
1515
runner_tag: ${{ matrix.runner_tag }}
1616
requirements_file_name: requirements_dev.yml
1717
ipynb_example_folder: "examples"
18+
multiprocessing_pytest_string: "-n auto"
19+
multiprocessing_example_string: "-n auto"
1820

1921
TestPushPyPIDev:
2022
name: Test PyPi development version on ${{ matrix.runner_tag }}
2123
strategy:
2224
fail-fast: false
2325
matrix:
2426
runner_tag: ["self-hosted"]
25-
uses: FZJ-IEK3-VSA/.github/.github/workflows/_run_single_pypi_test.yml@main
27+
uses: FZJ-IEK3-VSA/.github/.github/workflows/_run_single_pypi_test_uv_miniforge.yml@main
2628
with:
2729
runner_tag: ${{ matrix.runner_tag }}
2830
ipynb_example_folder: "examples"
2931
python_version: "3.13"
3032
optional_dependency_PyPI_tag: "[develop]"
3133
additional_conda_forge_dependencies: "glpk"
34+
multiprocessing_pytest_string: "-n auto"
35+
multiprocessing_example_string: "-n auto"

pyproject.toml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -28,50 +28,50 @@ classifiers = [
2828
"Topic :: Scientific/Engineering :: Mathematics",
2929
"Topic :: Software Development :: Libraries :: Python Modules",
3030
]
31-
keywords = ["energy assesment", "energy system", "optimization"]
31+
keywords = ["energy assessment", "energy system", "optimization"]
3232
dependencies = [
3333
"geopandas>=1.0.0,<=1.1.2",
3434
"openpyxl<=3.1.5",
35-
"matplotlib<=3.9.2",
35+
"matplotlib<=3.10.8",
3636
"xlrd>=1.2.0,<=2.0.2",
37-
"pyomo>=6.8,<=6.9.4",
38-
"numpy>=1.22,<=2.3.3",
39-
"pandas>=1.4,<=2.2.3",
40-
"scipy>=1.7.2,<=1.16.2",
41-
"scikit-learn>=1.2,<=1.7.2",
42-
"xarray>=2022.3.0,<=2025.10.1,!=2024.10.0,!=2024.11.0,!=2025.1.*,!=2025.3.*,!=2025.9.*",
43-
"rasterio>=1.3.0,<=1.4.3,!=1.3.0.post1",
44-
"netcdf4>1.5.8,<=1.7.3",
37+
"pyomo>=6.8,<=6.10.0",
38+
"numpy>=1.22,<=2.4.2",
39+
"pandas>=1.4,<=2.3.3",
40+
"scipy>=1.7.2,<=1.17.1",
41+
"scikit-learn>=1.2,<=1.8.0",
42+
"xarray>=2022.3.0,<=2026.2.0,!=2024.10.0,!=2024.11.0,!=2025.1.*,!=2025.3.*,!=2025.9.*",
43+
"rasterio>=1.3.7,<=1.5.0,!=1.3.0.post1",
44+
"netcdf4>1.5.8,<=1.7.4",
4545
"tsam>=2.0.1,<=2.3.9",
46-
"pwlf>=2.0.4,<=2.5.1",
47-
"psutil>=5.8.0,<=7.1.0",
46+
"pwlf>=2.0.4,<=2.5.2",
47+
"psutil>=5.8.0,<=7.2.2",
4848
"gurobi-logtools>=3.0.0,<=3.2.0",
49-
"ipykernel<=6.29.5",
49+
"ipykernel<=7.2.0",
5050
]
5151
# <=3.13 translates to <=3.13.0, why the <3.14 is used
52-
requires-python = ">=3.10,<3.14"
52+
requires-python = ">=3.10,<3.15"
5353

5454
[project.optional-dependencies]
5555
develop = [
5656
"sphinx<=7.4.4",
5757
"sphinx_rtd_theme<=2.0.0",
5858
"myst-parser<=2.0.0",
59-
"pytest<=8.3.3",
60-
"pytest-cov<=4.1.0",
61-
"pytest-xdist<=3.6.1",
59+
"pytest<=9.0.2",
60+
"pytest-cov<=7.0.0",
61+
"pytest-xdist<=3.8.0",
6262
"nbval<=0.11.0",
6363
"ruff<0.7.0",
6464
]
6565

66-
#Configureation options
66+
# Configuration options
6767
# https://docs.pytest.org/en/7.1.x/reference/reference.html#configuration-options
6868
[tool.pytest.ini_options]
6969
testpaths = ["test"]
7070
console_output_style = "progress"
7171
# How to configure Filterwarning:
7272
# https://docs.python.org/3/library/warnings.html#warning-filter
7373
# action:message:category:module:line
74-
# Omit a field by add ing ":" for each omitted field
74+
# Omit a field by adding ":" for each omitted field
7575
# Actions are: "default"
7676
# "error", "ignore", "always", "module", "once"
7777
filterwarnings = []

requirements_dev.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,34 @@ channels:
55
- nodefaults
66

77
dependencies:
8-
- python >=3.10,<=3.13
8+
- python >=3.10,<=3.13.12
99
- pip
1010
- geopandas >=1.0.0,<=1.1.2
1111
- glpk >=4.63,<=5.0
1212
- openpyxl <=3.1.5
13-
- matplotlib <=3.9.2
13+
- matplotlib <=3.10.8
1414
- xlrd >=1.2.0,<=2.0.2
15-
- pyomo >=6.8,<=6.9.4
16-
- numpy >=1.22,<=2.3.3
17-
- pandas >=1.4,<=2.2.3
18-
- scipy >=1.7.2,<=1.16.2
19-
- scikit-learn >=1.2,<=1.7.2
20-
- xarray >=2022.3.0,<=2025.10.1,!=2024.10.0,!=2024.11.0,!=2025.1.*,!=2025.3.*,!=2025.9.*
21-
- rasterio >=1.3.7,<=1.4.3
22-
- netcdf4 >1.6.4,<=1.7.3
15+
- pyomo >=6.8,<=6.10.0
16+
- numpy >=1.22,<=2.4.2
17+
- pandas >=1.4,<=2.3.3
18+
- scipy >=1.7.2,<=1.17.1
19+
- scikit-learn >=1.2,<=1.8.0
20+
- xarray >=2022.3.0,<=2026.2.0,!=2024.10.0,!=2024.11.0,!=2025.1.*,!=2025.3.*,!=2025.9.*
21+
- rasterio >=1.3.7,<=1.5.0
22+
- netcdf4 >1.6.4,<=1.7.4
2323
- tsam >=2.0.1,<=2.3.9
24-
- pwlf >=2.0.4,<=2.5.1
25-
- psutil >=5.8.0,<=7.1.0
24+
- pwlf >=2.0.4,<=2.5.2
25+
- psutil >=5.8.0,<=7.2.2
2626
- gurobi-logtools >=3.0.0,<=3.2.0
2727
# Examples
28-
- ipykernel <=6.29.5
28+
- ipykernel <=7.2.0
2929
# develop
30-
- pytest <=8.3.3
31-
- pytest-cov <=4.1.0
32-
- pytest-xdist <=3.6.1
30+
- pytest <=9.0.2
31+
- pytest-cov <=7.0.0
32+
- pytest-xdist <=3.8.0
3333
- nbval <=0.11.0
3434
- ruff <=0.13.1
35-
# Docuementation
35+
# Documentation
3636
- sphinx <=7.4.7
3737
- sphinx_rtd_theme <=2.0.0
3838
- myst-parser <=2.0.0

0 commit comments

Comments
 (0)