labscript-suite-oldfinal1 / runmanager

runmanager is a graphical user interface (GUI) used to aid the compilation of labscript experiment scripts into hardware instructions to be executed on the hardware. Experiment parameters can be adjusted in the GUI, and lists of parameters can be used to create sequences of experiments, and scan over complex parameter spaces.
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

global evaluation should use float division #25

Closed philipstarkey closed 7 years ago

philipstarkey commented 10 years ago

Original report (archived issue) by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).


1/2 == 0 is not expected in globals. Here is how to fix it:

http://stackoverflow.com/questions/9407640/python-eval-that-coerces-values-to-floating-point

This is just a note to myself so i don't forget to so this

philipstarkey commented 7 years ago

Original comment by Jan Werkmann (Bitbucket: PhyNerd, GitHub: PhyNerd).


Isn't this already fixed? I tried 1/2 in a global and got 0.5 as a result in the script.

philipstarkey commented 7 years ago

Original comment by Philip Starkey (Bitbucket: pstarkey, GitHub: philipstarkey).


Looks like this was fixed in changeset: e0d48fb35eca526e6b314bc66521078012ec5dbc

philipstarkey commented 7 years ago

Original comment by Philip Starkey (Bitbucket: pstarkey, GitHub: philipstarkey).