Prevent repeated shots from going to LYSE

35 views
Skip to first unread message

Rohit Prasad Bhatt

unread,
Oct 5, 2022, 3:18:39 AM10/5/22
to 'Philip Starkey' via The labscript suite
Dear all,
We use the repeat last shot functionality to keep our experiment running after BLACS has finished a shot queue. To save hard disk we delete the repeated shots with the plugin. But if the "Analyse" button is enabled for the queue, BLACS also sends the repeated shots to LYSE which creates an error since those shots have been deleted and LYSE cannot find them.

Is there a known solution for this problem, such that one can disable sending the repeated shorts to LYSE?

Regards,
Rohit Prasad Bhatt

Chris Billington

unread,
Oct 5, 2022, 5:59:48 AM10/5/22
to labscri...@googlegroups.com
Hi Rohit,

In recent (well, last 6 years) versions of lyse, it should at least not crash if a file has been deleted. If the file is deleted when lyse tries to open it initially, it should print a warning and ignore it. And if the file is deleted after it is initially added to lyse but before it is analysed, lyse should print a warning, and skip over the file and mark it with an icon as having been deleted off disk.

If you're running an older version, you could upgrade. Or, let us know if this behaviour not working correctly!

Of course you'd probably prefer an option for BLACS to not send repeated shot files to lyse in the first place. Such an option doesn't currently exist, though it wouldn't be much effort to add.

As a quick hack you could modify BLACS/analysis_submission.py, adding two lines to tell it to ignore files with '_rep' in their name:

diff --git a/blacs/analysis_submission.py b/blacs/analysis_submission.py
index 40aa332..f32562e 100644
--- a/blacs/analysis_submission.py
+++ b/blacs/analysis_submission.py
@@ -197,6 +197,8 @@ class AnalysisSubmission(object):
                     if self.server_online == 'online':
                         self.submit_waiting_files()
                 elif signal == 'file':
+                    if '_rep' in data:
+                        continue
                     if self.send_to_server:
                         self._waiting_for_submission.append(data)
                         if self.server_online != 'online':

Regards,

Chris

--
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/CAKBMk%2Be_iAcKmepYTW%2B9f9MoCwG5spCfVibc6cefmzPL8ccTgg%40mail.gmail.com.

Rohit Prasad Bhatt

unread,
Oct 7, 2022, 4:23:06 AM10/7/22
to 'Philip Starkey' via The labscript suite
Hi Chris,
Yes by error in LYSE , I meant the warning showing up and the analysis queue getting paused. LYSE itself doesn't crash.

I also tried your suggested workaround and it works fine. Thanks for your help!

Regards,
Rohit Prasad Bhatt

Reply all
Reply to author
Forward
0 new messages