force-h2020 / force-bdss

Business Decision System general interface
BSD 2-Clause "Simplified" License
2 stars 2 forks source link

Changing dimension in RangedVectorMCOParameter crashes WfManager #360

Closed flongford closed 4 years ago

flongford commented 4 years ago

Changing the RangedVectorMCOParameter.dimension variable in the WfManager crashes the UI with the following error message:

File "/~/force-bdss/force_bdss/mco/parameters/mco_parameters.py", line 262, in verify
    initial_value = self.initial_value[dim]
IndexError: list index out of range
Abort trap: 6

This looks to be an order of execution error, since the verify method is being called before the _update_bounds method has finished, which ensures that len(self.initial_value) == self.dimension