lyse: adding shots from multiple folders

52 views
Skip to first unread message

Edvinas Gvozdiovas

unread,
Aug 31, 2024, 10:56:45 AM8/31/24
to the labscript suite
Hello,

Is it true that there's no way to add .h5 files from multiple folders to the lyse analysis stack without going through each folder manually using the GUI?

If so, is there a way to add shots to the lyse stack by running a multi shot script that feeds lyse all the desired paths? It is rather trivial to write a script that digs through folders and subfolders and collects all the .h5 files inside.

Philip Starkey

unread,
Aug 31, 2024, 11:19:39 AM8/31/24
to the labscript suite
You can submit shots to lyse using ZMQ. See how BLACS does it here: https://github.com/labscript-suite/blacs/blob/7a84e382a4dced20d4e28335a2e3bf034b38c79e/blacs/analysis_submission.py#L255-L258

Should be easy enough to replicate in another script! The lyse port is defined in the labconfig file.

Let us know how it goes 🙂

Jan Deppe

unread,
Apr 9, 2025, 7:50:06 AMApr 9
to the labscript suite
Hey :)

I did something like this last fall, because we had the same problem with clicking through the folders. 
The GUI for the folder loading looks different then the GUI for file loading. I did this because i found this stack overflow conversation, where they describe how to select multiple folders with a non native interface

Load multiple folders dialog
Screenshot 2025-04-09 123917.png

standart dialog for loading files
Screenshot 2025-04-09 124004.png
I could do a pull request for this on github. Till now i hesitated, because the interface is non-native. I have only tested this on a windows system.
Reply all
Reply to author
Forward
0 new messages