mailr19144 - /trunk/pipe_control/structure/mass.py


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

Header


Content

Posted by edward on March 24, 2013 - 20:33:
Author: bugman
Date: Sun Mar 24 20:33:09 2013
New Revision: 19144

URL: http://svn.gna.org/viewcvs/relax?rev=19144&view=rev
Log:
Fixed some name classes in the namespace of pipe_control.structure.mass.


Modified:
    trunk/pipe_control/structure/mass.py

Modified: trunk/pipe_control/structure/mass.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/pipe_control/structure/mass.py?rev=19144&r1=19143&r2=19144&view=diff
==============================================================================
--- trunk/pipe_control/structure/mass.py (original)
+++ trunk/pipe_control/structure/mass.py Sun Mar 24 20:33:09 2013
@@ -25,13 +25,13 @@
 # relax module imports.
 from pipe_control.mol_res_spin import return_molecule, return_residue, 
return_spin
 from lib.errors import RelaxNoPdbError
-from lib.structure import mass
+from lib.structure.mass import centre_of_mass
 from lib.warnings import RelaxWarning
 
 
 
-def centre_of_mass(atom_id=None, model=None, return_mass=False, verbosity=1):
-    """Calculate and return the centre of mass of the structure.
+def pipe_centre_of_mass(atom_id=None, model=None, return_mass=False, 
verbosity=1):
+    """Calculate and return the centre of mass of the structures in the 
current data pipe.
 
     @keyword atom_id:       The molecule, residue, and atom identifier 
string.  Only atoms matching this selection will be used.
     @type atom_id:          str or None
@@ -91,7 +91,7 @@
         element_list.append(element)
 
     # Calculate the CoM.
-    com, mass = mass.centre_of_mass(pos=coord, elements=element_list)
+    com, mass = centre_of_mass(pos=coord, elements=element_list)
 
     # Return the centre of mass.
     if return_mass:




Related Messages


Powered by MHonArc, Updated Sun Mar 24 21:00:03 2013