Bug #2408
closed
Added by Jim Pulokas over 11 years ago.
Updated about 7 years ago.
Affected Version:
Appion/Leginon 3.0.0
Description
When importing presets in Leginon for GatanK2Counting, clicking the "Find" button raises exception:
Traceback (most recent call last):
File "/home/pulokas/dev/myami-defcon1/leginon/gui/wx/PresetsManager.py", line 1564, in onFindPresets
sname = p['session']['name']
TypeError: unsubscriptable object
- Status changed from New to In Code Review
- Assignee changed from Jim Pulokas to Anchi Cheng
I queried PresetData where session is NULL, and there is one result. Maybe this was a test of some kind? The DEF_id = 195177. It seems to have several fields = NULL. Also, the preset right before that (195176) also looks strange, but at least it has a session rather than NULL. To fix the immediate problem, I updated that bad preset to have the same session as the one right before it. Also, I modified the python code to ignore any presets like this in the future: r17710
- Assignee changed from Anchi Cheng to Jim Pulokas
DO you remember the name of the preset that has NULL in session?
r17784 fixes the source of null in aligned preset by adding session of the image to presetdata and fixes bad dimension/binning/offset presetdata, too.
- Status changed from In Code Review to In Test
- Assignee changed from Jim Pulokas to Anchi Cheng
- Target version set to Appion/Leginon 3.0.0
- Affected Version changed from Appion/Leginon 2.1.0 to Appion/Leginon 3.0.0
Need to test this with Manual Acquisition of DD images and then check the database results.
- Status changed from In Test to Closed
Also available in: Atom
PDF