Skip to content

Commit 906ba95

Browse files
committed
Correct once again ref images handling in atlasing
1 parent c136600 commit 906ba95

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

atlasing/anatomical/animaBuildAnatomicalAtlas.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,11 @@
6969
for f in filesList:
7070
if refBasename in f:
7171
filesExtension = os.path.splitext(f)[1]
72-
test = os.path.splitext(f)[0]
7372
if filesExtension == '.gz':
74-
filesExtension = os.path.splitext(test)[1] + filesExtension
75-
test = os.path.splitext(test)[0]
76-
77-
if test + filesExtension == refBasename:
78-
ref = ref + filesExtension
79-
break
73+
filesExtension = os.path.splitext(os.path.splitext(f)[0])[1] + filesExtension
8074

8175
previousMergeId = 0
76+
ref = ref + filesExtension
8277

8378
for k in range(1,args.num_iterations + 1):
8479
if os.path.exists('it_' + str(k) + '_done'):

atlasing/dti/animaBuildDTIAtlas.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
filesExtension = os.path.splitext(os.path.splitext(f)[0])[1] + filesExtension
7474

7575
previousMergeId = 0
76+
ref = ref + filesExtension
7677

7778
for k in range(1, args.num_iterations + 1):
7879
if os.path.exists('it_' + str(k) + '_done'):

0 commit comments

Comments
 (0)