Dear Brian,
The problem at least is clear. The class ccpnmr.Analysis.AtomSetMapping
has an attribute called resonanceSerials. This stores the serial numebr of
the Resonances that are mapped to particular AtomSets. The serial numbrs
again are used to calculate AtomSetMapping.resonances.
The short term fix (in general terms) is to find the serial number of the
Resonance you deleted, get hold of the AtomSetMapping that causes the
error, and remove the resonance serial from the resonanceSerials attriute.
This could be done with XML editing, with the generic editor (I think, or
with the command myAtomSetMapping.removeResonanceSerial(5), assuming that
5 is the serial you want to remove.
Analysis shjould make sure that such problems do not happen, but here you
will have to talk to Tim (who just left for a week of conferencing).
---------------------------------------------------------------------------
Dr. Rasmus H. Fogh Email: [log in to unmask]
Dept. of Biochemistry, University of Cambridge,
80 Tennis Court Road, Cambridge CB2 1GA, UK. FAX (01223)766002
On Fri, 3 Sep 2004, Brian Smith wrote:
> Hi,
>
> I am trying to sort out a misassignment in my project - I
> reassigned all the misassigned peaks and then deleted the resonance
> (without first cleaning it of its assignment - probably a mistake). Now
> when I try to assign the correct peaks via a new resonance to the atom I
> get the following traceback. I guess I will have to edit the xml to fix
> this one - any clues as to where to start?
>
> Traceback (most recent call last):
> File "/usr/lib64/python2.2/lib-tk/Tkinter.py", line 1316, in __call__
> return apply(self.func, args)
> File "/usr/local/ccpnmr/ccpnmr1.0/python/memops/gui/ScrolledMatrix.py",
> line 421, in mouseClick
> self.selectCell(row,col)
> File "/usr/local/ccpnmr/ccpnmr1.0/python/memops/gui/ScrolledMatrix.py",
> line 1137, in selectCell
> self.callback(self.currentObject, objRow, objCol)
> File
> "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/BrowseAtomsPopup.py",
> line 469, in selectCell
> assignmentPanel.chooseAtoms( object )
> File
> "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/EditAssignmentPopup.py",
> line 306, in chooseAtoms
> self.assign(atomSetMapping)
> File
> "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/EditAssignmentPopup.py",
> line 268, in assign
> resonance = atomSetMapping.resonances[0]
> File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/api/Analysis.py", line
> 1770, in getResonances
> raise ApiError("ccpnmr.Analysis.AtomSetMapping.getResonances(): key
> points to non-existent object")
> ApiError: ccpnmr.Analysis.AtomSetMapping.getResonances(): key points to
> non-existent object
>
>
> --
> Dr. Brian O. Smith ---------------------- B.Smith at bio.gla.ac.uk
> Division of Biochemistry & Molecular Biology,
> Institute Biomedical & Life Sciences,
> Joseph Black Building, University of Glasgow, Glasgow G12 8QQ, UK.
> Tel: 0141 330 5167/6459 Fax: 0141 330 8640
>
|