Skip to content

Commit

Permalink
Merge pull request #40 from davidkastner/updateNonNanocage
Browse files Browse the repository at this point in the history
Troubleshooting
  • Loading branch information
mane292 authored Jul 31, 2024
2 parents 352dada + 9362ca9 commit 417eb5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyef/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Electrostatics:
hasECP: boolean
indicates if an effective core potential was used... in this case, molden file will need to be re-formatted to be compatible multiwfn!
'''
def __init__(self, lst_of_folders, lst_of_tmcm_idx, folder_to_file_path, inGaCage, hasECP=False, includePtChgs=False):
def __init__(self, lst_of_folders, lst_of_tmcm_idx, folder_to_file_path, inGaCage=False, hasECP=False, includePtChgs=False):
self.lst_of_folders = lst_of_folders
self.lst_of_tmcm_idx = lst_of_tmcm_idx
self.folder_to_file_path = folder_to_file_path
Expand Down Expand Up @@ -840,7 +840,7 @@ def errorAnalysis(self, csvName):
# dict of calcs, calculations to be performed by multiwavefunction with the corresponding keys
# newfilanme: desired name of the .csv fiole that will be createcd in getData cotnaining all of the ESP/other data extracted un the file

def getESPData(self, charge_types, ESPdata_filename, multiwfn_module, multiwfn_path, atmrad_path, dielectric):
def getESPData(self, charge_types, ESPdata_filename, multiwfn_module, multiwfn_path, atmrad_path, dielectric=1):
'''
Function computes a series of ESP data using the charge scheme specified in charge types.
Expand Down Expand Up @@ -911,7 +911,7 @@ def getESPData(self, charge_types, ESPdata_filename, multiwfn_module, multiwfn_p
# With newly analyzed partial charges, re-compute ESP data
[ESP_all, ESP_just_ligand, ESP_just_cage, atom_type] = self.ESP_all_calcs(path_to_xyz, full_file_path, atom_idx, self.inGaCageBool)
else:
[ESP_all, atom_type] = self.ESP_all_calcs(full_file_path, atom_idx, self.inGaCageBool)
[ESP_all, atom_type] = self.ESP_all_calcs(path_to_xyz, full_file_path, atom_idx, self.inGaCageBool)

[total_charge,partial_charge_atom] = Electrostatics.charge_atom(full_file_path, atom_idx)
[sorted_distances, sorted_esps, cum_esps, sorted_cum_idx, sorted_cum_chg, sorted_atomTypes] = self.esp_bydistance(path_to_xyz, atom_idx, full_file_path)
Expand Down

0 comments on commit 417eb5f

Please sign in to comment.