Project

General

Profile

Smart Leginon: fails to change grid

Added by Michael Cianfrocco over 1 year ago

Hi Anchi,

I installed Ptolemy and the latest beta branch of myami to try to run smart Leginon.

I've made it pretty far - the autoscreen.py is able to run and start operating Leginon via the Ptolemy application.

The issue I'm running into relates to grid switching: autoscreen successfully loads a grid and takes an atlas, but I get this error when it tries to switch to the next grid. I verified that everything is still connected, because when I take control of the Leginon Application after I get this error, I am able to switch grids using scope control.

I haven't updated Leginon on the microscope PC - could this be the issue?

Thanks,
Mike

Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 812, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.7/threading.py", line 765, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/lsi/cryoem_automation/myami/beta-mc/lib/python2.7/site-packages/leginon/manager.py", line 183, in launchPreviousApp
    self.runApplication(app)
  File "/lsi/cryoem_automation/myami/beta-mc/lib/python2.7/site-packages/leginon/manager.py", line 1194, in runApplication
    self.autoStartApplication(self.auto_task)
  File "/lsi/cryoem_automation/myami/beta-mc/lib/python2.7/site-packages/leginon/manager.py", line 1273, in autoStartApplication
    self.setSessionByName(next_auto_session['session']['name'])
  File "/lsi/cryoem_automation/myami/beta-mc/lib/python2.7/site-packages/leginon/manager.py", line 237, in setSessionByName
    self.sendManagerNotificationEvent(to_node, out)
  File "/lsi/cryoem_automation/myami/beta-mc/lib/python2.7/site-packages/leginon/manager.py", line 355, in sendManagerNotificationEvent
    self.clients[to_node].send(eventcopy)
KeyError: 'glacios-9952007'

Replies (1)

RE: Smart Leginon: fails to change grid - Added by Anchi Cheng over 1 year ago

It is likely the problem. There quite a few new events that manager needs to broadcast to all nodes, including the Instrument node on the scope and camera, for autoscreen to work.

The specific KeyError might also be related to host mapping. Do you use pyami.cfg to specify the hostname/ip pair that forces leginon components to use ? It would be a good idea to do so.

    (1-1/1)