← Back to team overview

yade-dev team mailing list archive

Re: checking values of registered attributes

 

Three ways :

1/
e=O.engines[5]
e.+tab (exploit autocompletion)

2/ e?

3/ help(e)

I don't know why 2 and 3 don't give the same result but I'm sure it is in the documentation somewhere. ;-)

Bruno




Janek Kozicki a écrit :
what is the python command to see a listing of all values of all
registered attributes of a given engine?

For example I want to check what are the values of O.engines[5] so I try

  print(O.engines[5])

and but doesn't work :) I tried to use pickle to save it into a
textfile, but no success again.



--
_______________
Bruno Chareyre
Associate Professor
ENSE3 - Grenoble INP
Lab. 3SR
BP 53 - 38041, Grenoble cedex 9 - France
Tél : 33 4 56 52 86 21
Fax : 33 4 76 82 70 43
________________




References