Dear Graeme,
Answer to the error message (only):
First of all: Good you are adding new NmrExpPrototypes. That was always
the idea, but I was getting afraid that no one would ever try. If your new
prototype might be useful for others (it probably might), could you please
mail me a copy, so I can include it in the standard distribution?
The problem is that the NmrExpPrototypes are set to non-modifiable by
default. They are reference data, and this avoids people modifying them by
mistake. To get over this do the following:
In the Analysis command line, type:
project = top.project
prototypeStorage = project.findFirstStorage(package='ccp.NmrExpPrototype')
prototypeStorage.isModifiable=True
You should now be able to make changes.
NB a little trick. You can modify your new Prototype as long as the
project remains open. When you exit and go in again it will be
unmodifiable. There is a way around this (hint: look in the
documentation), but I have deliberately made it obscure so that only
people who know what they are doing start modifying the existing
prototypes.
Yours,
Rasmus
---------------------------------------------------------------------------
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 Thu, 30 Mar 2006, Graeme Ball wrote:
> Hi,
>
> I just uploaded some macros for measuring RDCs to the CCPN website if anyone
> is interested in using them. I have some questions too - I found that I
> was unable to
> create new experiment prototypes -
>
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr/local/ccpnmr/python2.4/lib/python2.4/lib-tk/Tkinter.py",
> line 1345, in __call__
> return self.func(*args)
> File
> "/usr/local/ccpnmr/ccpnmr1.0/python/ccp/gui/NmrExpPrototypeEditor.py",
> line 468, in newNmrExpPrototype
> obj = self.project.newNmrExpPrototype(name='dummy', category='other')
> File
> "/usr/local/ccpnmr/ccpnmr1.0/python/memops/api/Implementation.py", line
> 25490, in newNmrExpPrototype
> return NmrExpPrototype(self, **attrlinks)
> File "/usr/local/ccpnmr/ccpnmr1.0/python/ccp/api/NmrExpPrototype.py",
> line 7604, in __init__
> raise ApiError("%s.__init__:" % self.qualifiedName +
> ApiError: ccp.NmrExpPrototype.NmrExpPrototype.__init__:Storage not
> modifiable:<memops.Implementation.NormalStorage [12]>
>
> and finally, how would I go about creating a new residue such as 5-Me
> Cytosine?
>
> Thanks,
>
> Graeme
>
|