SpineOpt.jl
SpineOpt.jl copied to clipboard
Boolean values for upward_reserve and downward_reserve are not being parsed correctly
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
Changing parameter definitions sounds more like SpineOpt specific issue so I took the liberty to move this issue here.