Skip to content

Commit

Permalink
Update fileio.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMaullin authored Mar 10, 2021
1 parent c8df637 commit 7006bd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fileio.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def addBlockToNifti(fname, block, blockInds,dim=None,volInd=None,aff=None,hdr=No
while fileLocked:
try:
# Create lock file, so other jobs know we are writing to this file
os.open(fname + ".lock", os.O_CREAT|os.O_EXCL|os.O_RDWR)
f=os.open(fname + ".lock", os.O_CREAT|os.O_EXCL|os.O_RDWR)
fileLocked = False
except FileExistsError:
fileLocked = True
Expand Down

0 comments on commit 7006bd5

Please sign in to comment.