Project

General

Profile

Actions

Bug #7018

closed

Error in Python code when getting presets "From Scope"

Added by Amy Bondy over 5 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
03/22/2019
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 3.5
Show in known bugs:
No
Workaround:

Description

I had this issue start to arise in Leginon today. In the presets manager node when adjusting parameters (ie. intensity, image shift, beam shift) and pressing the "from scope" button, all the presets become grayed out and nothing further can be done in presets manager without restarting Leginon. This is the error I get in my terminal:

Exception in thread Thread-39:
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/trunk/lib/python2.7/site-packages/leginon/presets.py", line 972, in fromScope
while trys < 3 and (newpreset['image shift']['x'] is None or newpreset['beam shift']['x'] is None or newpreset['diffraction shift']['x'] is None):
TypeError: 'NoneType' object has no attribute '__getitem
'

Actions

Also available in: Atom PDF