File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -142,12 +142,12 @@ def run_task(self, fw_spec=None):
142
142
143
143
for f in files_to_copy :
144
144
prev_path_full = os .path .join (calc_dir , f )
145
- dest_fname = self .get ("name_prepend" , "" ) + f + self .get ("name_append" , "" )
145
+ f , ext = os .path .splitext (f )
146
+ dest_fname = self .get ("name_prepend" , "" ) + f + self .get ("name_append" , "" ) + ext
146
147
dest_path = os .path .join (os .getcwd (), dest_fname )
147
148
148
149
fileclient .copy (prev_path_full , dest_path )
149
150
150
-
151
151
@explicit_serialize
152
152
class DeleteFiles (FiretaskBase ):
153
153
"""
Original file line number Diff line number Diff line change @@ -290,15 +290,17 @@ def interpolate_poscar(self, fw_spec):
290
290
# use CopyFilesFromCalcLoc to get files from previous locations.
291
291
CopyFilesFromCalcLoc (
292
292
calc_loc = self ["start" ],
293
- filenames = ["CONTCAR" ],
293
+ filenames = ["CONTCAR" , "CONTCAR.gz" ],
294
294
name_prepend = interpolate_folder + os .sep ,
295
295
name_append = "_0" ,
296
+ decompress = True ,
296
297
).run_task (fw_spec = fw_spec )
297
298
CopyFilesFromCalcLoc (
298
299
calc_loc = self ["end" ],
299
- filenames = ["CONTCAR" ],
300
+ filenames = ["CONTCAR" , "CONTCAR.gz" ],
300
301
name_prepend = interpolate_folder + os .sep ,
301
302
name_append = "_1" ,
303
+ decompress = True ,
302
304
).run_task (fw_spec = fw_spec )
303
305
304
306
# assuming first calc_dir is polar structure for ferroelectric search
You can’t perform that action at this time.
0 commit comments