Actions
Bug #1173
closedappion can not find project for experiment using branch myami-dbcopy
Status:
Won't Fix or Won't Do
Priority:
Normal
Assignee:
Category:
Sinedon
Target version:
Start date:
02/05/2011
Due date:
% Done:
0%
Estimated time:
Affected Version:
Appion/Leginon 2.2.0
Show in known bugs:
No
Workaround:
Description
Here is an example using a test sesssion of mine on my own computer.
manualpicker.py --projectid=1 --preset=en --session=11feb05a --runname=manrun1 --rundir=/Users/acheng/testdata/appion/11feb05a/extract/manrun1 --no-rejects --no-wait --commit --reverse --limit=4 --continue --median=2 --lowpass=15 --highpass=0 --planereg --bin=4 --diam=200 --pixlimit=4.0 --shape=plus
... Time stamp: 11feb05w28... Function name: manualpicker
... Appion directory: /Users/acheng/myami/appion
!!! WARNING: Using split database
Connected to database: 'ap1'
... Committing data to database
Traceback (most recent call last):
File "/Users/acheng/myami/appion/bin/manualpicker.py", line 605, in <module>
imgLoop = ManualPicker()
File "/Users/acheng/myami/appion/appionlib/particleLoop2.py", line 95, in init
appionLoop2.AppionLoop.__init__(self)
File "/Users/acheng/myami/appion/appionlib/appionLoop2.py", line 30, in init
appionScript.AppionScript.__init__(self, True)
File "/Users/acheng/myami/appion/appionlib/appionScript.py", line 84, in init
self.checkGlobalConflicts()
File "/Users/acheng/myami/appion/appionlib/particleLoop2.py", line 270, in checkGlobalConflicts
filterLoop.FilterLoop.checkGlobalConflicts(self)
File "/Users/acheng/myami/appion/appionlib/filterLoop.py", line 122, in checkGlobalConflicts
appionLoop2.AppionLoop.checkGlobalConflicts(self)
File "/Users/acheng/myami/appion/appionlib/appionLoop2.py", line 273, in checkGlobalConflicts
imgproject = apProject.getProjectIdFromSessionName(self.params['sessionname'])
File "/Users/acheng/myami/appion/appionlib/apProject.py", line 41, in getProjectIdFromSessionName
projectid = getProjectIdFromSessionData(sessiondata)
File "/Users/acheng/myami/appion/appionlib/apProject.py", line 21, in getProjectIdFromSessionData
apDisplay.printError("could not find project for session "+sessiondata['name'])
File "/Users/acheng/myami/appion/appionlib/apDisplay.py", line 56, in printError
raise Exception, colorString("\n * FATAL ERROR *\n"+text+"\n\a","red")
Exception:
- FATAL ERROR ***
could not find project for session 11feb05a
Updated by Anchi Cheng almost 14 years ago
Did a test
import leginon.leginondata import leginon.projectdata q = leginon.leginondata.SessionData() r = q.query(results=1) q = leginon.projectdata.projectexperiments(session=r[0]) q.query()
The error message is:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/acheng/myami/sinedon/data.py", line 429, in query results = db.query(self, **kwargs) File "/Users/acheng/myami/sinedon/dbdatakeeper.py", line 86, in query result = self._query(*args, **kwargs) File "/Users/acheng/myami/sinedon/dbdatakeeper.py", line 105, in _query result = self.dbd.multipleQueries(queryinfo, readimages=readimages) File "/Users/acheng/myami/sinedon/sqldict.py", line 249, in multipleQueries return _multipleQueries(self.db, queryinfo, readimages) File "/Users/acheng/myami/sinedon/sqldict.py", line 504, in __init__ self.queries = setQueries(queryinfo) File "/Users/acheng/myami/sinedon/sqldict.py", line 962, in setQueries query = queryFormatOptimized(queryinfo,value['alias']) File "/Users/acheng/myami/sinedon/sqldict.py", line 999, in queryFormatOptimized joinTable = queryinfo[id] KeyError: 18977576
Updated by Jim Pulokas about 11 years ago
- Status changed from Assigned to Won't Fix or Won't Do
- Assignee changed from Jim Pulokas to Anchi Cheng
- Affected Version changed from Appion/Leginon 2.2.0 (trunk) to Appion/Leginon 2.2.0
won't use dbcopy branch
Actions