Error with keys during live

I ran my first live session in v5.0.0 (also v5.0.1) and got this error during particle picking (Patch motion and CTF worked well):

Fail count: 2

Traceback (most recent call last):
    File “compute/jobs/live_worker/run.py”, line 97, in compute.jobs.live_worker.run.rtp_worker
    File “compute/jobs/live_worker/run.py”, line 183, in compute.jobs.live_worker.run.process_movie
    File “compute/jobs/live_worker/run.py”, line 794, in compute.jobs.live_worker.run.do_pick
    File “compute/jobs/live_worker/run.py”, line 796, in compute.jobs.live_worker.run.do_pick
    File “compute/jobs/template_picker/run.py”, line 155, in compute.jobs.template_picker.run.do_pick
    File “compute/jobs/template_picker/run.py”, line 898, in compute.jobs.template_picker.run.do_pick
    File “/home/cryosparc_user/cryosparc_gpu1/cryosparc_worker/core/run_context.py”, line 265, in set_output_image
        return jobs.set_output_image(self.get_job(), output_name, figure, format)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/home/cryosparc_user/cryosparc_gpu1/cryosparc_worker/core/jobs.py”, line 2238, in set_output_image 
        job.outputs[output_name].image = asset.fileid
        ~~~~~~~~~~~^^^^^^^^^^^^^
    File “/home/cryosparc_user/cryosparc_gpu1/cryosparc_worker/models/root.py”, line 64, in _getitem_ 
        return self.root[item] 
               ~~~~~~~~~^^^^^^ 
KeyError: ‘particles’

Modifications to the standard live session are 2 workers per GPU and a Fourier crop of 0.5.

Best,

Dawid

This issue occurs when the worker returns no particles. I believe it should be fixed to always return all the keys, so that even if there are no particles in the micrograph, no error occurs. The problem was that the minimum score threshold was set too high, preventing any particles from passing it.

Thanks @dzyla for this report. We think we have found the cause and plan to release a fix. For an immediate workaround, one can try re-running the session with the Enable Plotting in RTP Worker advanced parameter disabled.


1 Like