Skip to content

Commit 77be1bf

Browse files
committed
removed get_UA_masses
1 parent f4964d7 commit 77be1bf

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

‎CodeEntropy/levels/axes.py‎

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,30 +1111,6 @@ def get_principal_axes_from_group(self, group) -> np.ndarray:
11111111
)
11121112
return principal_axes
11131113

1114-
def get_UA_masses(self, molecule) -> list[float]:
1115-
"""Return united-atom (UA) masses for a molecule.
1116-
1117-
For a given molecule, return a list of masses of UAs (combination of the
1118-
heavy atoms + bonded hydrogen atoms). This list is used to get the moment
1119-
of inertia tensor for molecules larger than one UA.
1120-
1121-
Args:
1122-
molecule: MDAnalysis AtomGroup representing the molecule.
1123-
1124-
Returns:
1125-
list[float]: UA masses for each heavy atom.
1126-
"""
1127-
ua_masses: list[float] = []
1128-
for atom in molecule:
1129-
if atom.mass > 1.1:
1130-
ua_mass = float(atom.mass)
1131-
bonded_atoms = molecule.select_atoms(f"bonded index {atom.index}")
1132-
bonded_h_atoms = bonded_atoms.select_atoms("mass 1 to 1.1")
1133-
for h in bonded_h_atoms:
1134-
ua_mass += float(h.mass)
1135-
ua_masses.append(ua_mass)
1136-
return ua_masses
1137-
11381114
def get_chain(self, residue, first, last):
11391115
"""
11401116
For a given MDAnalysis AtomGroup and two given heavy atoms

0 commit comments

Comments
 (0)