File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -131,17 +131,17 @@ def run_task(self, fw_spec):
131
131
for subfilename in os .listdir (os .path .join (calc_dir , "scratch" )):
132
132
if "HESS" in subfilename :
133
133
hess_files .append ("scratch/" + subfilename )
134
- elif subfilename == "132.0" :
134
+ elif subfilename == "132.0" or subfilename == "132.0.gz" :
135
135
hess_files .append ("scratch/" + subfilename )
136
136
137
137
if len (hess_files ) == 0 :
138
138
task_doc ["warnings" ]["hess_file_missing" ] = True
139
139
else :
140
140
hess_data = {}
141
141
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" :
143
143
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 :
145
145
binary = file .read ()
146
146
for ii in range (int (len (binary )/ 8 )):
147
147
tmp_hess_data .append (struct .unpack ("d" ,binary [ii * 8 :(ii + 1 )* 8 ])[0 ])
You can’t perform that action at this time.
0 commit comments