> Two parentheses missing, and also fixed now!
> > File
> > "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/PeakBasic.py", line
> > 727, in getDataDimRefMapping
> > dataDimB = targetDataSource.sortedDataDims[i]
> > TypeError: unsubscriptable object
> >
> > So it's a different error and the bugfix isn't quite as intuitive for
> > me, but perhaps for you.
So it should have been
targetDataSource.sortedDataDims()[i]
I mention this for the coding enthusiasts out there. The general API form
parent.sortedChildren() is a function call that returns a list of child
objects in order of their keys.
If you do parent.children in the new API (not the current hybrid one) then
you will get a set return type, not a list. Thus the order is not
preserved and you cannot use indices to access objects.
T.
-------------------------------------------------------------------------------
Dr Tim Stevens Email: [log in to unmask]
Department of Biochemistry [log in to unmask]
University of Cambridge Phone: +44 1223 766018 (office)
80 Tennis Court Road +44 7816 338275 (mobile)
Old Addenbrooke's Site +44 1223 364613 (home)
Cambridge CB2 1GA WWWeb: http://www.bio.cam.ac.uk/~tjs23
United Kingdom http://www.pantonia.co.uk
-------------------------------------------------------------------------------
------ +NH3CH(CH(CH3)OH)C(O)NHCH(CH(CH3)CH2CH3)C(O)NHCH(CH2CH2SCH3)CO2- -------
-------------------------------------------------------------------------------
|