spine-tools / SpineOpt.jl

A highly adaptable modelling framework for multi-energy systems
https://www.tools-for-energy-system-modelling.org/
GNU Lesser General Public License v3.0
53 stars 13 forks source link

Boolean values for upward_reserve and downward_reserve are not being parsed correctly #776

Open datejada opened 11 months ago

datejada commented 11 months ago

Description of the bug

In the Spine DB Editor, the parameters upward_reserve and downward_reserve for the node entity should be parsed as boolean rather than string when the user enters the value. This is causing an error when using the reserves functionality in SpineOpt.

Workaround

The user can right-click on the value cell and then, in the context menu, select 'Edit...' and choose the desired boolean value (i.e., true or false). Then, Toolbox parses the value correctly for SpineOpt.

Solution

Change the code (template??) such that the parameters upward_reserve and downward_reserve have the same behaviour as when the user includes the is_reserve_node parameter, which has a boolean_value_list

soininen commented 11 months ago

Changing parameter definitions sounds more like SpineOpt specific issue so I took the liberty to move this issue here.