ok, now i get the error for ccp.Nmr.AbstractPeak.measurements. same fix?
Quoting Tim Stevens <[log in to unmask]>:
> > setattr(obj,tag,targets)
> > File "/usr/progs/ccpnmr/ccpnmr1.0/python/ccp/api/Nmr.py", line 2536, in
> > setPeaks
> > raise ApiError('ccp.Nmr.AbstractMeasurement.peaks list may not contain
> > duplicates')
> > memops.general.Implementation.ApiError: ccp.Nmr.AbstractMeasurement.peaks
> list
> > may not contain duplicates
> >
> > what's that all about then?
>
> More constraints/rules have been put into the data model. This constraint
> wasn't followed in the past, so a compatibility problem arises. A backward
> compatibility fix is needed. Rasmus?
>
>
> In the mean time the following should work:
>
> In $CCPN_HOME/python/ccp/api/Nmr.py, near line 2536 change
>
> if values.count(value) != 1:
> raise ApiError('ccp.Nmr.AbstractMeasurement.peaks list may not
> contain duplicates')
>
> to
>
> while values.count(value) > 1:
> values.remove(value)
> #raise ApiError('ccp.Nmr.AbstractMeasurement.peaks list may not
> contain duplicates')
>
> If you like you can restore Nmr.py to its previous state after you've
> loaded and saved your project.
>
>
> Tim
>
>
-------------------------------------------------------------------------------
> Dr Tim Stevens Email: [log in to unmask]
> Department of Biochemistry [log in to unmask]
> University of Cambridge Phone: +44 1223 766022 (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-
> -------
>
-------------------------------------------------------------------------------
>
|