Project

General

Profile

Actions

Bug #2408

closed

preset with session=NULL

Added by Jim Pulokas over 11 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
06/28/2013
Due date:
% Done:

0%

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

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

Actions #1

Updated by Jim Pulokas over 11 years ago

  • 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

Actions #2

Updated by Anchi Cheng over 11 years ago

  • Assignee changed from Anchi Cheng to Jim Pulokas

DO you remember the name of the preset that has NULL in session?

Actions #3

Updated by Anchi Cheng over 11 years ago

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.

Actions #4

Updated by Anchi Cheng over 11 years ago

  • 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.

Actions #5

Updated by Anchi Cheng about 7 years ago

  • Status changed from In Test to Closed
Actions

Also available in: Atom PDF