Description
Original report (archived issue) by Philip Starkey (Bitbucket: pstarkey, GitHub: philipstarkey).
I've just had an idea to create mapping between each point in a runviewer trace, and the line number of the experiment logic python file that generated that point. That way, you could easily identify which bit of your experiment logic Python code was responsible for generating a particular feature you are seeing.
This probably should be implemented as part of the next major labscript version (and not before).
I probably don't suggest saving this information along side every hardware instruction, but rather store a separate table (or tables) in much the same way we do for markers and other metadata displayed in runviewer.
Some ideas for how to access this information are here and probably I would just suggest we put it in all of the labscript functions we expect to be called (that is, we want to know where the channel.method()
was called, and not say where the wrapper function make_BEC
was called and also not where Output.add_instruction()
was called, which probably prohibits putting it inside the method of that name).