Skip to content

Commit

Permalink
Fix atom names bug in Solvent.py
Browse files Browse the repository at this point in the history
  • Loading branch information
martimunicoy committed Aug 25, 2020
1 parent d6a7af4 commit caac80d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions offpele/solvent/solvent.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def to_dict(self):

for atom, name in zip(self.molecule.rdkit_molecule.GetAtoms(),
atom_names):
name = name.replace(' ', '_')
index = atom.GetIdx()
data['SolventParameters'][self.molecule.name][name] = \
{'radius': round(self.radii[tuple((index, ))].value_in_unit(
Expand Down

0 comments on commit caac80d

Please sign in to comment.