Hello,
Rasmus and/or Tim might be able to make further and better comments but
this is what I found from chasing the code through.
It looks like that Experiment has been set up but without any ExpDimRef
information created, and the latter contains information about the
isotope. Without the isotope (in this case I guess 13C), the code (as it
stands) cannot find the relevant refExperiments.
So each experiment has an expDim object for each dimension (in this case
it's a 1D experiment). And each expDim has one or more expDimRefs (in
this case almost certainly one). So how was this experiment object
created? To create an expDimRef by hand you would do something like
(this code would have to be refined for more general situations):
expt = project.findFirstNmrProject().findFirstExperiment()
# above since only one nmrProject and only one experiment in this project
expDim = project.findFirstExpDim()
# above since only one dimension
expDimRef = expDim.newExpDimRef(sf=600, isotopeCodes=('13C',))
(assuming it was run on a 600 MHz machine, enter the correct value
obviously). If you are also going to create spectra then you should also
set the unit for the expDimRef:
expDimRef.unit = 'ppm'
(you can also set this in the constructor).
I just tried this and then the Experiment Types table seemed to behave
itself.
Wayne
On Fri, 17 Apr 2009, Magnus Lundborg wrote:
> Hello,
>
> I've got a few projects that Wim has converted from the sugabase database. At
> an earlier stage the reference experiment was not set. So when I opened a
> project in analysis I was prompted to set the experiment type. The strange
> thing is that I didn't get any alternatives in Type Synonym or Full Type.
> When I tried to create an experiment for the project in CASPER I got:
>
> memops.general.Implementation.ApiError:
> ccp.nmr.NmrExpPrototype.NmrExpPrototype:
> cannot find method 'getName'
>
> This might be unrelated to the problems with reference experiments in
> analysis, but I'm not sure.
>
> After this Wim set the experiment type of the projects that he had converted
> for me. The strange thing is if I now, in analysis, edit the experiment and
> try to change the experiment type (which looks fine at first) it just goes
> blank without any possibility to change it again.
>
> I understand that my explanation sounds a bit confusing, but I hope you
> understand what I mean. I attach a project that gives this problem.
>
> /Magnus
>
> --
> Magnus Lundborg, ph.D. Student
> Stockholm University
> Department of Organic Chemistry
> Arrhenius Laboratory
> S-106 91 Stockholm
> Sweden
> E-mail address: [log in to unmask]
>
>
|