Skip to content

Commit d8df70c

Browse files
committed
Make postprocessor delete files by default, not keep
1 parent ca824d9 commit d8df70c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

srcPython/postAether.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ def parse_args():
2828
parser.add_argument('-hdf5', \
2929
help='output HDF5 files', \
3030
action="store_true")
31-
parser.add_argument('-rm', \
32-
help='removes processed files', \
31+
parser.add_argument('-keep', \
32+
help='Do not remove processed files', \
3333
action="store_true")
3434
parser.add_argument('-alt', default = -1, type = int, \
3535
help='altitude to plot (-1 for no plot!)')
@@ -1205,8 +1205,8 @@ def main(args):
12051205
#write_and_plot_data(stdData, fileInfo['ensembleFile'],
12061206
# '_std', iVar, iAlt, output_netcdf)
12071207

1208-
if (args.rm):
1209-
print(' --> Removing files ...')
1208+
if not (args.keep):
1209+
print(' --> Removing files ...', filelist)
12101210
for file in filelist:
12111211
command = 'rm -f '+file
12121212
if (isVerbose):

0 commit comments

Comments
 (0)