Skip to content

Commit 95f1397

Browse files
committed
MIPAV workaround
1 parent 70d8290 commit 95f1397

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nipype/interfaces/slicer/generate_classes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,9 @@ def grab_xml(module, launcher):
312312
#workaround for a JIST bug https://www.nitrc.org/tracker/index.php?func=detail&aid=7233&group_id=228&atid=942
313313
if xmlReturnValue.strip().endswith("XML"):
314314
xmlReturnValue = xmlReturnValue.strip()[:-3]
315-
return xml.dom.minidom.parseString(xmlReturnValue)
315+
if xmlReturnValue.strip().startswith("Error: Unable to set default atlas"):
316+
xmlReturnValue = xmlReturnValue.strip()[len("Error: Unable to set default atlas"):]
317+
return xml.dom.minidom.parseString(xmlReturnValue.strip())
316318
# if ret.runtime.returncode == 0:
317319
# return xml.dom.minidom.parseString(ret.runtime.stdout)
318320
# else:

0 commit comments

Comments
 (0)