Maybe this is crazy, but what about just creating a new field in the data frame that is equal to the GUI index number? In my mind there is nothing special about the lyse dataframe (since it is basically a convince tool to get a data that otherwise is stored in shot files), so adding a new field seems reasonable.
In addition Edvinas: it would be a trivial addition to the lyse API to add a function that instructs lyse to remove one or many rows from the dataframe (and the GUI) from within a scrip.
— Ian
Ian B. Spielman
Fellow, Joint Quantum Institute
National Institute of Standards and Technology and the University of Maryland
----- WEB -----
http://ultracold.jqi.umd.edu
----- EMAIL -----
spie...@jqi.umd.edu
----- ZOOM -----
https://umd.zoom.us/j/7984811536
----- PHONE -----
(301) 246-2482
----- MAIL -----
UMD:
2207 Computer & Space Sciences Bldg.
College Park, MD 20742
NIST:
100 Bureau Drive, Stop 8424
Gaithersburg, MD 20899-8424 USA
----- OFFICE -----
UMD: Physical Sciences Complex, Room 2153
NIST: Building 216, Room B131
> The pandas dataframe has some sort of sorting going on which means I cannot trust the order of shots to be the same as in the user interface.
>
> --
> You received this message because you are subscribed to the Google Groups "the labscript suite" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
labscriptsuit...@googlegroups.com.
> To view this discussion on the web, visit
https://groups.google.com/d/msgid/labscriptsuite/61ec4306-3edd-4181-93ac-3dc0086057ebn%40googlegroups.com.