Falkamelung/mergeburst race cond (#106)

* race condition fix: avoids raising of exception when multiple jobs create dir at same time
LT1AB
Falk Amelung 2020-03-25 22:14:37 -04:00 committed by GitHub
parent e0b7ad05a1
commit 7fb9142f1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -390,8 +390,7 @@ def main(iargs=None):
fileList.append([os.path.join(inps.dirname, 'IW{0}'.format(swath), namePattern[0] + '_%02d.%s'%(x,namePattern[1])) for x in range(minBurst, maxBurst+1)]) fileList.append([os.path.join(inps.dirname, 'IW{0}'.format(swath), namePattern[0] + '_%02d.%s'%(x,namePattern[1])) for x in range(minBurst, maxBurst+1)])
mergedir = os.path.dirname(inps.outfile) mergedir = os.path.dirname(inps.outfile)
if not os.path.isdir(mergedir): os.makedirs(mergedir, exist_ok=True)
os.makedirs(mergedir)
suffix = '.full' suffix = '.full'
if (inps.numberRangeLooks == 1) and (inps.numberAzimuthLooks==1): if (inps.numberRangeLooks == 1) and (inps.numberAzimuthLooks==1):