Skip to content

Commit 1efe7db

Browse files
committed
FIX: Only check for existence of new label for fsaverage
1 parent eea82bf commit 1efe7db

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

niworkflows/interfaces/bids.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,11 @@ def _run_interface(self, runtime):
912912
else:
913913
raise FileNotFoundError("Expected to find '%s' to copy" % source)
914914

915-
if dest.exists() and self.inputs.minimum_fs_version == "7.0.0":
915+
if (
916+
space == 'fsaverage'
917+
and dest.exists()
918+
and self.inputs.minimum_fs_version == "7.0.0"
919+
):
916920
label = dest / 'label' / 'rh.FG1.mpm.vpnl.label' # new in FS7
917921
if not label.exists():
918922
# remove previous output and let us recopy

0 commit comments

Comments
 (0)