esa / opengeode

OpenGEODE - a free SDL editor
https://opengeode.net
GNU Lesser General Public License v3.0
69 stars 20 forks source link

Error - Answers of decision could overlap #59

Closed SerenaC94 closed 4 years ago

SerenaC94 commented 4 years ago

Hi, I have to do a check on a variable, and go to the same recovery state if it is too high or too low. I have done something like this Screenshot from 2020-06-03 18-42-18

where battery_VIT.i is a variable of type MyReal ::= REAL (0..100.0), ilow is a constant MyReal ::= 0.5 and ihigh is a constant MyReal ::= 3.0. However it results in

[ERROR] Answers of decision "battery_VIT.i" could overlap

I don't see problems on the ranges, is it because I go to the same state in two different branches? I had done it before like here Screenshot from 2020-06-03 18-42-43

and there was no error.

maxime-esa commented 4 years ago

You are right, that was a bug. It should be fixed now in the python3-pyside2 branch of Opengeode

SerenaC94 commented 4 years ago

Awesome, it works now. Thanks!