Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .zenodo.json
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,11 @@
"affiliation": "MIT, HMS",
"name": "Ghosh, Satrajit",
"orcid": "0000-0002-5312-6729"
},
{
"affiliation": "Holland Bloorview Kids Rehabilitation Hospital",
"name": "Tilley II, Steven",
"orcid": "0000-0003-4853-5082"
}
],
"keywords": [
Expand Down
8 changes: 8 additions & 0 deletions nipype/interfaces/ants/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,14 @@ def _format_registration(self):
if len(moving_masks) > 1 else 0]
else:
moving_mask = 'NULL'
if (fixed_mask == 'NULL' or
isinstance(fixed_mask, list) and 'NULL' in fixed_mask or
moving_mask == 'NULL' or
isinstance(moving_mask, list) and 'NULL' in moving_mask):
print("CURRENT PATH: {}".format(os.getcwd()))
if os.path.exists('NULL'):
raise RuntimeError('NULL used as placeholder for no mask '
'but a file named NULL exists')
retval.append('--masks [ %s, %s ]' % (fixed_mask, moving_mask))
return " ".join(retval)

Expand Down