Skip to content

Commit

Permalink
Merge pull request #32 from davidkastner/fix_atomwiseESPptch
Browse files Browse the repository at this point in the history
Fixed partial charge function
  • Loading branch information
mane292 authored May 29, 2024
2 parents 3fe7fc2 + 8c8d009 commit e336255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyef/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ def getpartialchgs(self, charge_types, lst_atom_idxs, partial_chg_filename):
atmrad_src = "/opt/Multiwfn_3.7_bin_Linux_noGUI/examples/atmrad"
copy_tree(atmrad_src, results_dir + 'atmrad/')
try:
for atom_idx in lst_atom_idxs
for atom_idx in lst_atom_idxs:
[atom_type, partial_charge_atom] = Electrostatics.getAtomInfo(full_file_path, atom_idx)
results_dict[f'{key} Charge {atom_idx} {atom_type}'] = partial_charge_atom
except Exception as e:
Expand All @@ -1066,7 +1066,7 @@ def getpartialchgs(self, charge_types, lst_atom_idxs, partial_chg_filename):
new_name = 'final_optim_' +key+'.txt'
os.rename('final_optim.chg', new_name)

for atom_idx in lst_atom_idxs
for atom_idx in lst_atom_idxs:
[atom_type, partial_charge_atom] = Electrostatics.getAtomInfo(full_file_path, atom_idx)
results_dict[f'{key} Charge {atom_idx} {atom_type}'] = partial_charge_atom

Expand Down

0 comments on commit e336255

Please sign in to comment.