I have sorted the immediate issue and have posted the macro on the web
site and also in the v2.2.1 updates (not v2.1.5 as it was not in that
release). In v2.2.1 it is in the file:
.../python/ccpnmr/analysis/macros/RelaxationAnalysis.py
The issue was probably triggered by having a list with T2 measurements
with no corresponding T1 measurements (for the same resonances). Although,
this can legitimately occur when you're swapping between T1/T2 lists for
different sequences. There may be more issues with this sort of thing, but
I don't have test data at hand to test right now.
T.
> Date: Tue, 3 May 2011 20:18:45 +0100
> From: Vitaliy <[log in to unmask]>
> Reply-To: CcpNmr software mailing list <[log in to unmask]>
> To: [log in to unmask]
> Subject: relaxation analysis macro gives an error
>
> Hello,
> I was wondering if somebody could please help me to fix the problem I am
> having with the relaxation analysis macro which I got from CCPN website.
> Please see the traceback attached. I am getting this traceback for both 2.1.5
> and 2.2.1 versions. As a result, the macro picks and displays a scatter only
> for one pair of T1&T2 lists which is the first in the measurment lists.
> Thank you,
> Vitaliy
>
>>>> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/home/vitaliy/ccpnmr/python2.6/lib/python2.6/lib-tk/Tkinter.py", line
> 1410, in __call__
> return self.func(*args)
> File "/home/vitaliy/ccpnmr/python2.6/lib/python2.6/lib-tk/Tkinter.py", line
> 495, in callit
> func(*args)
> File "/usr/local/ccpnmr_macros/relaxationanalysis.py", line 495, in draw
> self.t1t2GraphB.update(self.t1List, self.t2List)
> File "/usr/local/ccpnmr_macros/relaxationanalysis.py", line 1028, in update
> self.minRes = min(seqNums) - 1
> ValueError: min() arg is an empty sequence
>
> "Always send" option
>
-------------------------------------------------------------------------------
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.ccpn.ac.uk
-------------------------------------------------------------------------------
------ +NH3CH(CH(CH3)OH)C(O)NHCH(CH(CH3)CH2CH3)C(O)NHCH(CH2CH2SCH3)CO2- -------
-------------------------------------------------------------------------------
|