mailRe: Print loaded spectrum id's


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by Edward d'Auvergne on August 26, 2013 - 17:22:
Hi,

It might be better to ask these questions on the relax-devel mailing
list (https://mail.gna.org/listinfo/relax-devel) as you are getting
into the programming side.  Here you have confused the 'spectrum' user
function class - which is an automatically created object generated
from the definitions in the user_functions package
(http://www.nmr-relax.com/api/3.0/user_functions.spectrum-module.html)
- with the pipe_contorl.spectrum module
(http://www.nmr-relax.com/api/3.0/pipe_control.spectrum-module.html).
You could try the following:

relax> import pipe_control
relax> pipe_control.spectrum.get_ids()

You could also type 'from pipe_control import spectrum', but this
would then permanently hide the user function class.

Regards,

Edward



On 26 August 2013 17:12, Troels Emtekær Linnet <tlinnet@xxxxxxxxx> wrote:
Hi.

Accoring to the API:
http://www.nmr-relax.com/api/3.0/

in
pipe_control.spectrum.get_ids

If I do:
spectrum.get_ids()

i get:
AttributeError: 'Class_container' object has no attribute 'get_ids'

Should that be called different?

Best
Troels



Troels Emtekær Linnet

_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-users mailing list
relax-users@xxxxxxx

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-users



Related Messages


Powered by MHonArc, Updated Tue Aug 27 12:20:08 2013