You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to use the interactive_run function found in tulip-control/tulip/transys/machines.py.
I have tried using the code found in gr1.py of the eeci2020 branch. The code is able to run machines.random_run(strategy, from_state='Sinit', N=10) successfully. However, when I change this line to machines.interactive_run(strategy, from_state='Sinit'), I get stuck in a loop. First, I see the following text printed:
Select from the available transitions above
by giving its integer,
Press "Enter" to stop the simulation:
int = `
I am asked to pick a transition for the environment to take, but any option (0 or 1) I choose once again prints the text above. Moreover, if I try pressing "Enter", the simulation does not stop, and the text above is printed once more.
I have also tried running this code using the line strategy.run('Sinit') (function found here). I get the same results.
Please let me know if I am doing anything wrong or if there is an issue with this code. Thank you!
The text was updated successfully, but these errors were encountered:
Hello,
I have been trying to use the interactive_run function found in tulip-control/tulip/transys/machines.py.
I have tried using the code found in gr1.py of the eeci2020 branch. The code is able to run
machines.random_run(strategy, from_state='Sinit', N=10)
successfully. However, when I change this line tomachines.interactive_run(strategy, from_state='Sinit')
, I get stuck in a loop. First, I see the following text printed:`Found more than 1 outgoing transitions:
Select from the available transitions above
by giving its integer,
Press "Enter" to stop the simulation:
int = `
I am asked to pick a transition for the environment to take, but any option (0 or 1) I choose once again prints the text above. Moreover, if I try pressing "Enter", the simulation does not stop, and the text above is printed once more.
I have also tried running this code using the line
strategy.run('Sinit')
(function found here). I get the same results.Please let me know if I am doing anything wrong or if there is an issue with this code. Thank you!
The text was updated successfully, but these errors were encountered: