EnergySystemsModellingLab / EnergySystemsModellingLab/MUSE_OS

Odd results when existing capacity data doesn't match the time framework [BUG]

Aperta
#371 1 commento 0 reazioni 1 assegnatario Rivendicata da @tsmbland Vedi su GitHub
bug
Lingua principale
Python
Stelle
29
Fork
12
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

One of the tutorials talks about changing the time framework to every 2 years instead of every 5 years. According to the tutorial, this is a simple matter of changing the settings file, and doesn't involve changing any of the timing data in the csv files. Even though the existing capacity is specified every 5 years, MUSE should carry out linear interpolation and everything should still be fine with a 2-year framework, right?

Annoyingly this doesn't seem to be the case. If I switch the time framework to every two years without changing the capacity files, I get a very strange result in the gas sector:

![capacity_base](https://github.com/EnergySystemsModellingLab/MUSE_OS/assets/23723407/28e7cd47-f9a4-4d29-a925-0553b719f05c)
![capacity_base_2years](https://github.com/EnergySystemsModellingLab/MUSE_OS/assets/23723407/22030197-15f8-4447-b08a-76b68e875f01)

If I interpolate the capacity files myself (to create a new set of files matching the new time framework), and then re-run the model, it looks much more reasonable:

![capacity_base_2years_interp](https://github.com/EnergySystemsModellingLab/MUSE_OS/assets/23723407/93f978ad-17f4-49f0-a53f-8a1566e0ca89)

I have no idea what the root cause of the issue is, but it seems like something is going wrong when the capacity data doesn't match up with the time framework (even though MUSE _should_ deal with this fine by interpolating the capacity data)

A couple of approaches:
- Enforce that the timing data in the capacity files must match the time framework specified in the settings file (and update the tutorial model accordingly)
- Find out what's causing the bug in this example and fix it

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.