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

Globals with fixed length string are not sorted correctly in Qt #24

Closed philipstarkey closed 10 years ago

philipstarkey commented 10 years ago

Original report (archived issue) by Shaun Johnstone (Bitbucket: shjohnst, GitHub: shjohnst).


GTK runmanager used fixed length strings to store globals, whereas Qt runmanager uses variable length strings.

In Qt runmanager, if you load a globals file which was created with GTK runmanager, the variables which were created in GTK will not sort by value, units or expansion, only name. Once you have modified one of these columns for a global, it will start sorting as expected, amongst other globals which have been edited or created in Qt runmanager.

philipstarkey commented 10 years ago

Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).


Resolves Issue #24: Globals with fixed length string are not sorted correctly in Qt.

For raw (unevaluated) globals values, units and expansions, fixed lenth strings (np.str_) are converted to Python unicode strings on read.

For evaluated globals, fixed length strings are converted to python str().

→ \<\<cset 6c33a91d1f36dbf6c54b799d3a00c6aa56d501c2>>