Skip to content

Commit 7370ccf

Browse files
committed
allow 132.0.gz
1 parent c282386 commit 7370ccf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

atomate/qchem/firetasks/parse_outputs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,17 +131,17 @@ def run_task(self, fw_spec):
131131
for subfilename in os.listdir(os.path.join(calc_dir, "scratch")):
132132
if "HESS" in subfilename:
133133
hess_files.append("scratch/" + subfilename)
134-
elif subfilename == "132.0":
134+
elif subfilename == "132.0" or subfilename == "132.0.gz":
135135
hess_files.append("scratch/" + subfilename)
136136

137137
if len(hess_files) == 0:
138138
task_doc["warnings"]["hess_file_missing"] = True
139139
else:
140140
hess_data = {}
141141
for hess_name in hess_files:
142-
if hess_name[-5:] == "132.0":
142+
if hess_name[-5:] == "132.0" or hess_name[-8:] == "132.0.gz":
143143
tmp_hess_data = []
144-
with open(os.path.join(calc_dir, hess_name), mode="rb") as file:
144+
with zopen(os.path.join(calc_dir, hess_name), mode="rb") as file:
145145
binary = file.read()
146146
for ii in range(int(len(binary)/8)):
147147
tmp_hess_data.append(struct.unpack("d",binary[ii*8:(ii+1)*8])[0])

0 commit comments

Comments
 (0)