Hi, I used pybel to read a pdb file and try to print out the unitcell
matrix, but i can not print the contents of it.

say :
 from pybel import *
for molecule in readfile('pdb','./CONTCAR.pdb'):
                  unitcell = molecule.unitcell
                  print unitcell.GetCellMatrix()
   |..>
   |..>
<openbabel.matrix3x3; proxy of <Swig Object of type 'OpenBabel::matrix3x3 *'
at 0x1fa8be10> >

I tried :

[~]|52> unitcell.GetCellMatrix().__str__
   <52> <method-wrapper '__str__' of matrix3x3 object at 0x1fa883d0>
[~]|53> unitcell.GetCellMatrix().__repr__
   <53> <bound method matrix3x3._swig_repr of <openbabel.matrix3x3; proxy of
<Swig Object of type 'OpenBabel::matrix3x3 *' at 0x1fa8b8d0> >>

Is it possible to stringfy the contents of it?

thanks a lot
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
OpenBabel-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to