Skip to content

Commit

Permalink
Use python3 chmod codes
Browse files Browse the repository at this point in the history
  • Loading branch information
ocommowi committed Nov 13, 2019
1 parent 9f7bc03 commit 36399e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions atlasing/anatomical/animaBuildAnatomicalAtlas.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
myfile.write("\n")

myfile.close()
os.chmod(fileName, 0755)
os.chmod(fileName, stat.S_IRWXU)

oarRunCommand = ["oarsub"]
if previousMergeId == 0:
Expand Down Expand Up @@ -139,7 +139,7 @@
myfile.write("\n")

myfile.close()
os.chmod(fileName, 0755)
os.chmod(fileName, stat.S_IRWXU)

oarRunCommand = ["oarsub","-n","merge-" + str(k),"-S",os.getcwd() + "/mergeRun_" + str(k)]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
myfile.write("\n")

myfile.close()
os.chmod(fileName, 0755)
os.chmod(fileName, stat.S_IRWXU)

oarRunCommand = ["oarsub"]
if previousMergeId == 0:
Expand Down Expand Up @@ -121,7 +121,7 @@
" -a $OAR_ARRAY_INDEX \n")

myfile.close()
os.chmod(fileName, 0755)
os.chmod(fileName, stat.S_IRWXU)

oarRunCommand = ["oarsub","-n","bch-" + str(k),"-S",os.getcwd() + "/bchRun_" + str(k), "-a", str(previousRegId)]

Expand All @@ -147,7 +147,7 @@
" -c " + str(args.num_cores) + "\n")

myfile.close()
os.chmod(fileName, 0755)
os.chmod(fileName, stat.S_IRWXU)

oarRunCommand = ["oarsub"]
for jobId in jobsIds:
Expand Down
4 changes: 2 additions & 2 deletions atlasing/dti/animaBuildDTIAtlas.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
myfile.write("\n")

myfile.close()
os.chmod(fileName, 0755)
os.chmod(fileName, stat.S_IRWXU)

oarRunCommand = ["oarsub"]
if previousMergeId == 0:
Expand Down Expand Up @@ -139,7 +139,7 @@
myfile.write("\n")

myfile.close()
os.chmod(fileName, 0755)
os.chmod(fileName, stat.S_IRWXU)

oarRunCommand = ["oarsub","-n","merge-" + str(k),"-S",os.getcwd() + "/mergeRun_" + str(k)]

Expand Down

0 comments on commit 36399e1

Please sign in to comment.