Project

General

Profile

Actions

Bug #451

closed

Dog Picker does not work on test image

Added by Arne Moeller over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
05/11/2010
Due date:
% Done:

100%

Estimated time:
Affected Version:
Show in known bugs:
Workaround:

Description

Run Dog Picker in test mode is not working
error message: "An Error occured - no image was created"

tested on image /ami/data00/leginon/10apr29c/rawdata/10apr29c_a_00012gr_00006sq_00002cs_v04_00003en_01.mrc

Actions #1

Updated by Neil Voss over 14 years ago

  • Subject changed from Dog Picker to Dog Picker does not work on test image
  • Priority changed from Immediate to Normal
  • Target version set to Appion/Leginon 2.0.0
Actions #2

Updated by Neil Voss over 14 years ago

  • Status changed from New to Assigned
  • Assignee set to Christopher Irving

There is some strange library things going on:

Traceback (most recent call last):
  File "/opt/appion/bin/dogPicker.py", line 77, in ?
    imgLoop = dogPicker()
  File "/var/tmp/appion-2.0-2_rc1-root/opt/appion/appionlib/particleLoop2.py", line 108, in __init__
  File "/var/tmp/appion-2.0-2_rc1-root/opt/appion/appionlib/appionLoop2.py", line 30, in __init__
  File "/var/tmp/appion-2.0-2_rc1-root/opt/appion/appionlib/appionScript.py", line 79, in __init__
  File "/var/tmp/appion-2.0-2_rc1-root/opt/appion/appionlib/particleLoop2.py", line 283, in checkGlobalConflicts
  File "/var/tmp/appion-2.0-2_rc1-root/opt/appion/appionlib/filterLoop.py", line 136, in checkGlobalConflicts
  File "/var/tmp/appion-2.0-2_rc1-root/opt/appion/appionlib/appionLoop2.py", line 272, in checkGlobalConflicts
  File "/var/tmp/appion-2.0-2_rc1-root/opt/appion/appionlib/apProject.py", line 21, in getProjectIdFromSessionName
AttributeError: 'list' object has no attribute 'getall'

This an older (pre-schema change) version of apProject:

def getProjectIdFromSessionName(sessionname):
    t0 = time.time()
    projectdata = leginon.project.ProjectData()
    projects = projectdata.getProjectExperiments()
    projectid = None
    for i in projects.getall():
        if i['name'] == sessionname:
            projectid = i['projectId']
    if not projectid:
        apDisplay.printError("no project associated with session "+sessionname)
    apDisplay.printMsg("Found project id="+str(projectid)+" for session "+sessionname
        +" in "+apDisplay.timeString(time.time()-t0))
    return projectid

The current version has no getall statement:

def getProjectIdFromSessionName(sessionname):
    t0 = time.time()
    ### get session
    sessiondata = getSessionDataFromSessionName(sessionname)

    ### get project
    projectid = getProjectIdFromSessionData(sessiondata)

    apDisplay.printMsg("Found project id="+str(projectid)+" for session "+sessionname
        +" in "+apDisplay.timeString(time.time()-t0))
    return projectid
Actions #3

Updated by Christopher Irving over 14 years ago

  • Status changed from Assigned to In Test
  • Assignee changed from Christopher Irving to Arne Moeller

This should work now that the appion code base has been updated on guppy.

Actions #4

Updated by Amber Herold over 14 years ago

  • Project changed from 5 to Appion
Actions #5

Updated by Neil Voss over 14 years ago

  • % Done changed from 0 to 100
Actions #6

Updated by Arne Moeller over 14 years ago

  • Status changed from In Test to Closed
Actions

Also available in: Atom PDF