RascalSoftware / RasCAL-2

GUI for Reflectivity Algorithm Toolbox
GNU General Public License v3.0
0 stars 4 forks source link

Fix for strategy enum bug #50

Closed StephenNneji closed 2 weeks ago

StephenNneji commented 2 weeks ago

After my previous PR, runs are failing at controls.strategy = int(input_controls.strategy) because we are using vars(self.controls).update(new_values) to set the control the enum string is not converted to an enum. This fix ensures an enum is always passed out of the controls widget.

Might be worth fixing this in python-RAT so it does not fail if strategy is a string