Hello,
I have a question regarding the data model and the C API. How is the
experimentType (in Nmr.Experiment) handled? I've tried looking for any
values of it in my projects (from analysis) and can't seem to find it.
Using the code below the output I get is: ?; (null)
experiment=Nmr_NmrProject_FindFirstExperiment_keyval0(*nmrProject);
ApiMap searchMap;
searchMap=ApiMap_New();
ApiMap_SetString(searchMap,"experimentType","HSQC");
experiment2=Nmr_NmrProject_FindFirstExperiment(*nmrProject,searchMap);
printf("%s\t%s\n",Nmr_Experiment_GetExperimentType(experiment),
Nmr_Experiment_GetExperimentType(experiment2));
So it seems like I get experiment, but the experimentType is rubbish and
experiment2 is null since nothing seems to match HSQC. In this project I
have 2 TOCSY, 1 NOESY, 1 HSQC, 1 13C and 1 1H spectra. Is there any way
to populate the experimentType attribute? It would be quite handy for
me. Or is there something I'm doing wrong?
Should I use the transferType (in Exp.Transfer) value instead? Can I
make an ApiMap for getting only experiments of a certain transferType?
Thanks for all assistance. I've just started using the C API so I have
lots of things to learn.
/Magnus
|