Skip to content
Snippets Groups Projects
Commit 2a0900e7 authored by Frisinghelli Daniel's avatar Frisinghelli Daniel
Browse files

Improved dry run.

parent 2b6c47e6
No related branches found
No related tags found
No related merge requests found
......@@ -100,9 +100,12 @@ if __name__ == '__main__':
['{}'.format(file) for file in target]))
# check whether to only print which files would be processed
if not args.dry_run:
# run reprojection in parallel
target = Parallel(n_jobs=-1, verbose=51)(
if args.dry_run:
LogConfig.init_log('Dry run. No files processed.')
sys.exit()
# run reprojection in parallel
target = Parallel(n_jobs=-1, verbose=51)(
delayed(reproject_cdo)(args.grid, src, trg, args.mode,
args.overwrite)
for src, trg in zip(source, target))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment