EnergySystemsModellingLab / MUSE_OS

Welcome to the MUSE-OS repository
https://muse-os.readthedocs.io/en/latest/
GNU General Public License v3.0
22 stars 8 forks source link

Fix for models with no existing capacity (v2) #298

Closed tsmbland closed 1 month ago

tsmbland commented 1 month ago

Description

Models were previously raising a RuntimeError if the existing capacity for a technology was zero for all years (based on a check in the factory method of the Subsector class). I have removed this check, and modified subsequent steps so it can handle this case.

Fixes #286

Type of change

Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s.

Key checklist

Further checks