Skip to content

LCOE output doesn't work [BUG]  #383

@tsmbland

Description

@tsmbland

Describe the bug

You get an error if you try to include the LCOE output:

ValueError: cannot insert hour, already exists

Raised by this line

To Reproduce

Include the following in the settings file for a model

[[outputs]]
quantity = "LCOE"
sink = "aggregate"
filename = "{cwd}/{default_output_dir}/MCA{Quantity}.csv"

and you will get the error above

Expected behavior

This should work without error, and create a file containing the LCOE metric for the simulation. This worked when I tried it a few weeks ago investigating #316, so whatever the problem it's relatively new. I think it was very likely introduced by #289

Screenshots

If applicable, add screenshots to help explain your problem.

Context

Please, complete the following to better understand the system you are using to run MUSE.

  • Operating system (eg. Windows 10):
  • MUSE version (eg. 1.0.1): dev
  • Installation method (eg. pipx, pip, development mode): dev
  • Python version (you can get this running python --version): 3.12

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions