Skip to content

Commit 7c8036c

Browse files
authored
Merge pull request #289 from EnergySystemsModellingLab/upgrade
Upgrade and un-pin dependencies and Python version to use
2 parents af65733 + d3b4f44 commit 7c8036c

405 files changed

Lines changed: 23540 additions & 23302 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/workflows/ci.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
os: [ubuntu-latest, macos-latest, windows-latest]
18-
python-version: ["3.8", "3.9"]
18+
# Test with the earliest and the latest python versions supported
19+
python-version: ["3.9", "3.12"]
1920

2021
steps:
2122
- uses: actions/checkout@v4
@@ -26,10 +27,7 @@ jobs:
2627
cache: pip
2728

2829
- name: Install dependencies
29-
run: |
30-
python -m pip install --upgrade pip==22.1.2
31-
pip install -U setuptools==62.6.0 wheel xlrd==1.2.0
32-
pip install -e .[all]
30+
run: pip install -e .[all]
3331

3432
# The unit tests, with coverage under linux
3533
- name: Unit tests (linux)
@@ -60,7 +58,8 @@ jobs:
6058
fail-fast: false
6159
matrix:
6260
os: [ubuntu-latest, macos-latest, windows-latest]
63-
python-version: ["3.8", "3.9"]
61+
# Test with the earliest and the latest python versions supported
62+
python-version: ["3.9", "3.12"]
6463

6564
steps:
6665
- uses: actions/checkout@v4
@@ -70,10 +69,7 @@ jobs:
7069
python-version: ${{ matrix.python-version }}
7170

7271
- name: Install dependencies
73-
run: |
74-
python -m pip install --upgrade pip==22.1.2
75-
pip install -U setuptools==62.6.0 wheel xlrd==1.2.0
76-
pip install -e .[all]
72+
run: pip install -e .[all]
7773

7874
# The regression tests (with non coverage)
7975
- name: Regression tests

.github/workflows/documentation.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,12 @@ jobs:
1313
- name: Set up Python
1414
uses: actions/setup-python@v5
1515
with:
16-
python-version: 3.9
16+
python-version: 3.12
1717
- name: Install dependencies
1818
run: |
1919
sudo apt update -y
2020
sudo apt install -y pandoc graphviz latexmk texlive-latex-recommended \
2121
texlive-latex-extra texlive-fonts-recommended
22-
python -m pip install --upgrade pip
23-
python -m pip install --upgrade setuptools==62.6.0 wheel
2422
python -m pip install -e .[doc,dev]
2523
- name: Generate results for default model
2624
run: |

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
{
2222
"name": "Model: default_timeslice",
23-
"type": "python",
23+
"type": "debugpy",
2424
"request": "launch",
2525
"module": "muse",
2626
"args": ["--model", "default_timeslice"]

docs/installation/pipx-based.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pipx-based installation
66
To help you installing MUSE in your system we will follow these steps:
77

88
- `Launching a terminal`_: Needed to both install and run MUSE.
9-
- `Installing a compatible Python version`_: At the moment, MUSE works with Python 3.8 and 3.9.
9+
- `Installing a compatible Python version`_: MUSE works with Python 3.9 to 3.12.
1010
- `Installing pipx`_: A Python application manager that facilitates installing, keeping applications updated and run them in their own isolated environments.
1111
- `Installing MUSE itself`_
1212

@@ -67,7 +67,7 @@ Once you have launched the Terminal, the window that opens will show the command
6767
Installing a compatible Python version
6868
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6969

70-
MUSE needs Python to run but, for now, it only works with versions 3.8 and 3.9, so the next step is to install a suitable version of Python.
70+
MUSE needs Python to run and it works with versions 3.9 to 3.12, so the next step is to install a suitable version of Python.
7171

7272
.. note::
7373

@@ -92,7 +92,7 @@ The first thing will be to check if you already have a suitable python version i
9292
9393
python --version
9494
95-
If the output is ``Python 3.8.X`` or ``Python 3.9.X``, where ``X`` is any number, then **you have a version of Python compatible with MUSE and you can skip this section altogether**. Move to `Installing pipx`_. In any other case, keep reading.
95+
If the output is ``Python 3.Y.X`` or ``Python 3.Y.X``, where ``X`` is any number and ``Y`` is 9, 10, 11 or 12, then **you have a version of Python compatible with MUSE and you can skip this section altogether**. Move to `Installing pipx`_. In any other case, keep reading.
9696

9797
There are multiple ways of installing Python, as well as multiple distributions. Here we have opted for the one that we believe is simplest, requires the smallest downloads and gives the maximum flexibility: using ``pyenv``.
9898

docs/tutorial-code/0-new-decision-metric/Results/MCACapacity.csv

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,47 +21,43 @@
2121
8,A1,6.90000000000,R1,14,2025,R1,residential,heatpump,retrofit,2035
2222
9,A1,25.00000000000,R1,15,2030,R1,residential,heatpump,retrofit,2035
2323
0,A1,3.00000000000,R1,0,2025,R1,power,gasCCGT,retrofit,2035
24-
21,A1,10.00000000000,R1,26,2020,R1,power,solarPV,retrofit,2035
25-
22,A1,2.40000000000,R1,27,2025,R1,power,solarPV,retrofit,2035
26-
23,A1,6.00000000000,R1,28,2030,R1,power,solarPV,retrofit,2035
27-
48,A1,6.75000000000,R1,78,2020,R1,power,windturbine,retrofit,2035
24+
10,A1,10.00000000000,R1,11,2020,R1,power,solarPV,retrofit,2035
25+
11,A1,2.40000000000,R1,12,2025,R1,power,solarPV,retrofit,2035
26+
12,A1,6.00000000000,R1,13,2030,R1,power,solarPV,retrofit,2035
27+
37,A1,6.75000000000,R1,55,2020,R1,power,windturbine,retrofit,2035
2828
0,A1,2.79440000000,R1,0,2025,R1,gas,gassupply1,retrofit,2035
2929
1,A1,7.50000000000,R1,1,2030,R1,gas,gassupply1,retrofit,2035
3030
2,A1,0.91000000000,R1,0,2035,R1,residential,gasboiler,retrofit,2040
3131
6,A1,25.00000000000,R1,7,2030,R1,residential,heatpump,retrofit,2040
3232
7,A1,16.09000000000,R1,8,2035,R1,residential,heatpump,retrofit,2040
3333
0,A1,3.00000000000,R1,0,2025,R1,power,gasCCGT,retrofit,2040
34-
1,A1,0.72440000000,R1,1,2035,R1,power,gasCCGT,retrofit,2040
35-
20,A1,10.00000000000,R1,24,2020,R1,power,solarPV,retrofit,2040
36-
21,A1,2.40000000000,R1,25,2025,R1,power,solarPV,retrofit,2040
37-
22,A1,6.00000000000,R1,26,2030,R1,power,solarPV,retrofit,2040
38-
23,A1,10.00000000000,R1,27,2035,R1,power,solarPV,retrofit,2040
39-
44,A1,6.75000000000,R1,72,2020,R1,power,windturbine,retrofit,2040
40-
45,A1,6.75000000000,R1,73,2035,R1,power,windturbine,retrofit,2040
34+
9,A1,10.00000000000,R1,12,2020,R1,power,solarPV,retrofit,2040
35+
10,A1,2.40000000000,R1,13,2025,R1,power,solarPV,retrofit,2040
36+
11,A1,6.00000000000,R1,14,2030,R1,power,solarPV,retrofit,2040
37+
12,A1,9.19000000000,R1,15,2035,R1,power,solarPV,retrofit,2040
38+
43,A1,6.75000000000,R1,72,2020,R1,power,windturbine,retrofit,2040
4139
0,A1,2.79440000000,R1,0,2025,R1,gas,gassupply1,retrofit,2040
4240
1,A1,7.50000000000,R1,1,2030,R1,gas,gassupply1,retrofit,2040
4341
2,A1,0.91000000000,R1,0,2035,R1,residential,gasboiler,retrofit,2045
4442
4,A1,16.09000000000,R1,7,2035,R1,residential,heatpump,retrofit,2045
4543
5,A1,31.00000000000,R1,8,2040,R1,residential,heatpump,retrofit,2045
4644
2,A1,3.00000000000,R1,0,2025,R1,power,gasCCGT,retrofit,2045
47-
3,A1,0.72440000000,R1,1,2035,R1,power,gasCCGT,retrofit,2045
48-
20,A1,10.00000000000,R1,22,2020,R1,power,solarPV,retrofit,2045
49-
21,A1,2.40000000000,R1,23,2025,R1,power,solarPV,retrofit,2045
50-
22,A1,6.00000000000,R1,24,2030,R1,power,solarPV,retrofit,2045
51-
23,A1,10.00000000000,R1,25,2035,R1,power,solarPV,retrofit,2045
52-
48,A1,6.75000000000,R1,77,2020,R1,power,windturbine,retrofit,2045
53-
49,A1,6.75000000000,R1,78,2035,R1,power,windturbine,retrofit,2045
45+
10,A1,10.00000000000,R1,13,2020,R1,power,solarPV,retrofit,2045
46+
11,A1,2.40000000000,R1,14,2025,R1,power,solarPV,retrofit,2045
47+
12,A1,6.00000000000,R1,15,2030,R1,power,solarPV,retrofit,2045
48+
13,A1,9.19000000000,R1,16,2035,R1,power,solarPV,retrofit,2045
49+
14,A1,6.00000000000,R1,17,2040,R1,power,solarPV,retrofit,2045
50+
50,A1,6.75000000000,R1,91,2020,R1,power,windturbine,retrofit,2045
5451
0,A1,2.79440000000,R1,0,2025,R1,gas,gassupply1,retrofit,2045
5552
1,A1,7.50000000000,R1,1,2030,R1,gas,gassupply1,retrofit,2045
5653
0,A1,31.00000000000,R1,0,2040,R1,residential,heatpump,retrofit,2050
5754
1,A1,23.00000000000,R1,1,2045,R1,residential,heatpump,retrofit,2050
5855
0,A1,3.00000000000,R1,0,2025,R1,power,gasCCGT,retrofit,2050
59-
1,A1,0.72440000000,R1,1,2035,R1,power,gasCCGT,retrofit,2050
60-
14,A1,2.40000000000,R1,22,2025,R1,power,solarPV,retrofit,2050
61-
15,A1,6.00000000000,R1,23,2030,R1,power,solarPV,retrofit,2050
62-
16,A1,10.00000000000,R1,24,2035,R1,power,solarPV,retrofit,2050
63-
17,A1,16.91000000000,R1,25,2045,R1,power,solarPV,retrofit,2050
64-
42,A1,6.75000000000,R1,77,2035,R1,power,windturbine,retrofit,2050
65-
43,A1,3.56000000000,R1,78,2045,R1,power,windturbine,retrofit,2050
56+
6,A1,2.40000000000,R1,13,2025,R1,power,solarPV,retrofit,2050
57+
7,A1,6.00000000000,R1,14,2030,R1,power,solarPV,retrofit,2050
58+
8,A1,9.19000000000,R1,15,2035,R1,power,solarPV,retrofit,2050
59+
9,A1,6.00000000000,R1,16,2040,R1,power,solarPV,retrofit,2050
60+
10,A1,16.91000000000,R1,17,2045,R1,power,solarPV,retrofit,2050
61+
46,A1,6.75000000000,R1,91,2045,R1,power,windturbine,retrofit,2050
6662
0,A1,2.79440000000,R1,0,2025,R1,gas,gassupply1,retrofit,2050
6763
1,A1,7.50000000000,R1,1,2030,R1,gas,gassupply1,retrofit,2050

0 commit comments

Comments
 (0)