Could it be easier?

dist = []
for atom in mol:
  for atom_b in mol:
    dist.append(my_dist(atom.coords, atom_b.coords))
print max(dist)

You'll have to write my_dist yourself...

- Noel

On 3 December 2010 16:59, JP <[email protected]> wrote:
> Friday evening query: Using pybel/Openbabel: is there a way to get the
> largest physical length of a whole molecule?  (basically the largest
> pairwise distance between the atoms in the molecules)...
> Many Thanks
> JP
> ------------------------------------------------------------------------------
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> OpenBabel-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
>
>

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
OpenBabel-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to