-
Notifications
You must be signed in to change notification settings - Fork 520
/
utilities.py
65 lines (51 loc) · 2 KB
/
utilities.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# -*- coding: utf-8 -*-
# -*- coding: utf8 -*-
"""Autogenerated file - DO NOT EDIT
If you spot a bug, please report it on the mailing list and/or change the generator."""
from nipype.interfaces.base import (
CommandLine,
CommandLineInputSpec,
SEMLikeCommandLine,
TraitedSpec,
File,
Directory,
traits,
isdefined,
InputMultiPath,
OutputMultiPath,
)
import os
class EMSegmentTransformToNewFormatInputSpec(CommandLineInputSpec):
inputMRMLFileName = File(
desc="Active MRML scene that contains EMSegment algorithm parameters in the format before 3.6.3 - please include absolute file name in path.",
exists=True,
argstr="--inputMRMLFileName %s",
)
outputMRMLFileName = traits.Either(
traits.Bool,
File(),
hash_files=False,
desc="Write out the MRML scene after transformation to format 3.6.3 has been made. - has to be in the same directory as the input MRML file due to Slicer Core bug - please include absolute file name in path ",
argstr="--outputMRMLFileName %s",
)
templateFlag = traits.Bool(
desc="Set to true if the transformed mrml file should be used as template file ",
argstr="--templateFlag ",
)
class EMSegmentTransformToNewFormatOutputSpec(TraitedSpec):
outputMRMLFileName = File(
desc="Write out the MRML scene after transformation to format 3.6.3 has been made. - has to be in the same directory as the input MRML file due to Slicer Core bug - please include absolute file name in path ",
exists=True,
)
class EMSegmentTransformToNewFormat(SEMLikeCommandLine):
"""title:
Transform MRML Files to New EMSegmenter Standard
category:
Utilities
description:
Transform MRML Files to New EMSegmenter Standard
"""
input_spec = EMSegmentTransformToNewFormatInputSpec
output_spec = EMSegmentTransformToNewFormatOutputSpec
_cmd = "EMSegmentTransformToNewFormat "
_outputs_filenames = {"outputMRMLFileName": "outputMRMLFileName.mrml"}