Skip to content

Commit

Permalink
remove vestigial nwchem _mod_input
Browse files Browse the repository at this point in the history
  • Loading branch information
zulissimeta committed Mar 11, 2024
1 parent fdf2ab1 commit 4267588
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions custodian/nwchem/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,6 @@ def check(self, directory="./"):
self.ntasks = len(out.data)
return len(self.errors) > 0

def _mod_input(self, search_string_func, mod_string_func, directory):
with open(os.path.join(directory, self.input_file)) as file:
lines = []
for line in file:
if search_string_func(line):
lines.append(mod_string_func(line))
else:
lines.append(line)

with open(os.path.join(directory, self.input_file), "w") as fout:
fout.write("".join(lines))

def correct(self, directory="./"):
"""Correct errors."""
backup("*.nw*", directory=directory)
Expand Down

0 comments on commit 4267588

Please sign in to comment.