Skip to content

Commodities for subsectors not deduced correctly when they share a common agent #707

@martinstringer

Description

@martinstringer

Describe the bug

If multiple subsectors share a common agent, and the commodity/ies in each subsector are not explicitly stated in the settings.toml, it seems that MUSE will assign all enduses controlled by that agent to all subsectors in which it acts. This will then cause sector.py to raise an error "Subsector commodities are not disjoint" and the model will not run.

To Reproduce

The attached input files should reproduce this error. If the commented lines in settings.toml are uncommented, it should run.

MuseInputFiles.zip

Expected behavior

If MUSE allows subsector commodities to be optional in the settings.toml, the commodities for each subsector should be deduced not from the agents but from the non-zero comm_out values for the processes listed in that subsectors existing capacity.

Metadata

Metadata

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