Skip to content

Commit

Permalink
fix pdbqt charge parsing in molecule_pdbqt.py
Browse files Browse the repository at this point in the history
  • Loading branch information
diogomart committed May 3, 2024
1 parent 051fc50 commit 9e2a7b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meeko/molecule_pdbqt.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def _read_ligand_pdbqt_file(pdbqt_string, poses_to_read=-1, energy_range=-1, is_
xyz = np.array([line[30:38].strip(), line[38:46].strip(), line[46:54].strip()], dtype=float)
try:
# PDBQT files from dry.py script are stripped from their partial charges. sigh...
partial_charges = float(line[71:77].strip())
partial_charges = float(line[70:76].strip())
except:
partial_charges = 0.0
atom_type = line[77:-1].strip()
Expand Down

0 comments on commit 9e2a7b4

Please sign in to comment.