Skip to content

Commit d183c58

Browse files
committed
Removed now-unnecessary utility operation
We no longer use ase's calculators. Not sure if other branches need this, but I figured to kill it for now.
1 parent c22dbf0 commit d183c58

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

dfttopif/parsers/base.py

-25
Original file line numberDiff line numberDiff line change
@@ -109,31 +109,6 @@ def get_result_functions(self):
109109
'Stresses': 'get_stresses'
110110
}
111111

112-
def _call_ase(self, func, directory):
113-
'''Make a call to an ASE function.
114-
115-
Note: I'm about to kill this function, once I'm done with the overhaul
116-
ASE assumes filenames, which we do not want
117-
118-
Handles changing directories
119-
120-
Returns: Result of ASE function
121-
'''
122-
# Change directories
123-
old_path = os.getcwd()
124-
os.chdir(directory)
125-
126-
# Call function
127-
try:
128-
res = func()
129-
except:
130-
os.chdir(old_path)
131-
raise
132-
133-
# Change back
134-
os.chdir(old_path)
135-
return res
136-
137112
def get_name(self):
138113
'''Get the name of this program'''
139114
raise NotImplementedError

0 commit comments

Comments
 (0)