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.
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.