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