Change syntax for Pyhton < 3.9
This commit is contained in:
parent
99b68be4ca
commit
e5d23578e1
@ -78,7 +78,7 @@ def main():
|
||||
|
||||
|
||||
config = {'global': {'out_dir': out_dir}}
|
||||
config |= json.load(open(args.c)) if args.c else {}
|
||||
config.update(json.load(open(args.c)) if args.c else {})
|
||||
|
||||
globalc = config['global']
|
||||
rasters = config['rasters'] if 'rasters' in config else [{}]
|
||||
@ -87,8 +87,8 @@ def main():
|
||||
for pc_file in pc_files:
|
||||
for raster in rasters:
|
||||
job = globalc.copy()
|
||||
job |= raster
|
||||
job |= {'pc_file': pc_file}
|
||||
job.update(raster)
|
||||
job.update({'pc_file': pc_file})
|
||||
queue += [job]
|
||||
|
||||
pool = Pool(processes=args.n)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user