Emission costs output doesn't work

Open
#421 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
data

Research direction

Start in src/muse/outputs/mca.py at sector_emission_costs, especially the lookup reported at line 871. Reproduce the emission_costs output with MUSE 1.1.0 or the development version, then verify that the output no longer raises the reported IndexError and produces the expected emission-costs result.

Written by the indexing model from the issue text.

Description

bug

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

Dominant language
Python
Stars
29
Forks
12
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EnergySystemsModellingLab/MUSE_OS

All issues in EnergySystemsModellingLab/MUSE_OS

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.