EnergySystemsModellingLab / EnergySystemsModellingLab/MUSE_OS

Emission costs output doesn't work

Aperta
#421 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Python
Stelle
29
Fork
12
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I get this error when I use the `emission_costs` output:

```
File "C:\Users\tbland\Documents\Code\MUSE_OS\src\muse\outputs\mca.py", line 871, in sector_emission_costs
i = (np.where(envs))[0][0]
~~~~~~~~~~~~~~~~~~~^^^
IndexError: index 0 is out of bounds for axis 0 with size 0
```

This happens both with MUSE 1.1.0 and the dev version

Relates to the `sector_emission_costs` function in `outputs/mca.py`

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.