[BUG] Some outputs fail to work

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

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
data

Research direction

Reproduce the failure in MUSE 1.3.3 using the emission_costs, fuel_costs, capital_costs, LCOE, and AEC outputs, then compare the behavior with MUSE 1.3.2. Read the related issue #421 and trace the output handling until the xarray year lookup and missing enduse errors are explained; done means all listed outputs complete without these exceptions.

Written by the indexing model from the issue text.

Description

bug

In MUSE 1.3.3, I get the following error when using the emission_costs, fuel_costs and capital_costs outputs:

  File "...venv\Lib\site-packages\xarray\core\indexes.py", line 791, in sel
    raise KeyError(
    ...<2 lines>...
    ) from e
KeyError: "not all values found in index 'year'. Try setting the 'method' keyword argument (example: method='nearest')."

Additionally, the LCOE and AEC outputs produce the following:

  File "...venv\Lib\site-packages\xarray\core\common.py", line 302, in __getattr__
    raise AttributeError(
        f"{type(self).__name__!r} object has no attribute {name!r}"
    )
AttributeError: 'Dataset' object has no attribute 'enduse'

It seems to be related to #421, but these errors did not appear in MUSE 1.3.2

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.