Esempio n. 1
0
def test_Complex_outputs():
    output_map = dict(magnitude_out_file=dict(),
    phase_out_file=dict(),
    real_out_file=dict(),
    imaginary_out_file=dict(),
    complex_out_file=dict(),
    )
    outputs = Complex.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
Esempio n. 2
0
def test_Complex_outputs():
    output_map = dict(complex_out_file=dict(),
    imaginary_out_file=dict(),
    magnitude_out_file=dict(),
    phase_out_file=dict(),
    real_out_file=dict(),
    )
    outputs = Complex.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
Esempio n. 3
0
def test_Complex_inputs():
    input_map = dict(real_cartesian=dict(position=1,
    xor=['real_polar', 'real_cartesian', 'complex_cartesian', 'complex_polar', 'complex_split', 'complex_merge'],
    argstr='-realcartesian',
    ),
    end_vol=dict(position=-1,
    argstr='%d',
    ),
    complex_split=dict(position=1,
    xor=['real_polar', 'real_cartesian', 'complex_cartesian', 'complex_polar', 'complex_split', 'complex_merge'],
    argstr='-complexsplit',
    ),
    start_vol=dict(position=-2,
    argstr='%d',
    ),
    complex_cartesian=dict(position=1,
    xor=['real_polar', 'real_cartesian', 'complex_cartesian', 'complex_polar', 'complex_split', 'complex_merge'],
    argstr='-complex',
    ),
    real_polar=dict(position=1,
    xor=['real_polar', 'real_cartesian', 'complex_cartesian', 'complex_polar', 'complex_split', 'complex_merge'],
    argstr='-realpolar',
    ),
    imaginary_out_file=dict(position=-3,
    genfile=True,
    argstr='%s',
    xor=['complex_out_file', 'magnitude_out_file', 'phase_out_file', 'real_polar', 'complex_cartesian', 'complex_polar', 'complex_split', 'complex_merge'],
    ),
    phase_out_file=dict(position=-3,
    genfile=True,
    argstr='%s',
    xor=['complex_out_file', 'real_out_file', 'imaginary_out_file', 'real_cartesian', 'complex_cartesian', 'complex_polar', 'complex_split', 'complex_merge'],
    ),
    complex_merge=dict(position=1,
    xor=['real_polar', 'real_cartesian', 'complex_cartesian', 'complex_polar', 'complex_split', 'complex_merge', 'start_vol', 'end_vol'],
    argstr='-complexmerge',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    magnitude_out_file=dict(position=-4,
    genfile=True,
    argstr='%s',
    xor=['complex_out_file', 'real_out_file', 'imaginary_out_file', 'real_cartesian', 'complex_cartesian', 'complex_polar', 'complex_split', 'complex_merge'],
    ),
    args=dict(argstr='%s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    complex_in_file=dict(position=2,
    argstr='%s',
    ),
    magnitude_in_file=dict(position=2,
    argstr='%s',
    ),
    complex_out_file=dict(position=-3,
    genfile=True,
    argstr='%s',
    xor=['complex_out_file', 'magnitude_out_file', 'phase_out_file', 'real_out_file', 'imaginary_out_file', 'real_polar', 'real_cartesian'],
    ),
    real_in_file=dict(position=2,
    argstr='%s',
    ),
    complex_polar=dict(position=1,
    xor=['real_polar', 'real_cartesian', 'complex_cartesian', 'complex_polar', 'complex_split', 'complex_merge'],
    argstr='-complexpolar',
    ),
    real_out_file=dict(position=-4,
    genfile=True,
    argstr='%s',
    xor=['complex_out_file', 'magnitude_out_file', 'phase_out_file', 'real_polar', 'complex_cartesian', 'complex_polar', 'complex_split', 'complex_merge'],
    ),
    imaginary_in_file=dict(position=3,
    argstr='%s',
    ),
    complex_in_file2=dict(position=3,
    argstr='%s',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    phase_in_file=dict(position=3,
    argstr='%s',
    ),
    output_type=dict(),
    )
    inputs = Complex.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value
Esempio n. 4
0
def test_Complex_inputs():
    input_map = dict(args=dict(argstr='%s',
    ),
    complex_cartesian=dict(argstr='-complex',
    position=1,
    xor=['real_polar', 'real_cartesian', 'complex_cartesian', 'complex_polar', 'complex_split', 'complex_merge'],
    ),
    complex_in_file=dict(argstr='%s',
    position=2,
    ),
    complex_in_file2=dict(argstr='%s',
    position=3,
    ),
    complex_merge=dict(argstr='-complexmerge',
    position=1,
    xor=['real_polar', 'real_cartesian', 'complex_cartesian', 'complex_polar', 'complex_split', 'complex_merge', 'start_vol', 'end_vol'],
    ),
    complex_out_file=dict(argstr='%s',
    genfile=True,
    position=-3,
    xor=['complex_out_file', 'magnitude_out_file', 'phase_out_file', 'real_out_file', 'imaginary_out_file', 'real_polar', 'real_cartesian'],
    ),
    complex_polar=dict(argstr='-complexpolar',
    position=1,
    xor=['real_polar', 'real_cartesian', 'complex_cartesian', 'complex_polar', 'complex_split', 'complex_merge'],
    ),
    complex_split=dict(argstr='-complexsplit',
    position=1,
    xor=['real_polar', 'real_cartesian', 'complex_cartesian', 'complex_polar', 'complex_split', 'complex_merge'],
    ),
    end_vol=dict(argstr='%d',
    position=-1,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    imaginary_in_file=dict(argstr='%s',
    position=3,
    ),
    imaginary_out_file=dict(argstr='%s',
    genfile=True,
    position=-3,
    xor=['complex_out_file', 'magnitude_out_file', 'phase_out_file', 'real_polar', 'complex_cartesian', 'complex_polar', 'complex_split', 'complex_merge'],
    ),
    magnitude_in_file=dict(argstr='%s',
    position=2,
    ),
    magnitude_out_file=dict(argstr='%s',
    genfile=True,
    position=-4,
    xor=['complex_out_file', 'real_out_file', 'imaginary_out_file', 'real_cartesian', 'complex_cartesian', 'complex_polar', 'complex_split', 'complex_merge'],
    ),
    output_type=dict(),
    phase_in_file=dict(argstr='%s',
    position=3,
    ),
    phase_out_file=dict(argstr='%s',
    genfile=True,
    position=-3,
    xor=['complex_out_file', 'real_out_file', 'imaginary_out_file', 'real_cartesian', 'complex_cartesian', 'complex_polar', 'complex_split', 'complex_merge'],
    ),
    real_cartesian=dict(argstr='-realcartesian',
    position=1,
    xor=['real_polar', 'real_cartesian', 'complex_cartesian', 'complex_polar', 'complex_split', 'complex_merge'],
    ),
    real_in_file=dict(argstr='%s',
    position=2,
    ),
    real_out_file=dict(argstr='%s',
    genfile=True,
    position=-4,
    xor=['complex_out_file', 'magnitude_out_file', 'phase_out_file', 'real_polar', 'complex_cartesian', 'complex_polar', 'complex_split', 'complex_merge'],
    ),
    real_polar=dict(argstr='-realpolar',
    position=1,
    xor=['real_polar', 'real_cartesian', 'complex_cartesian', 'complex_polar', 'complex_split', 'complex_merge'],
    ),
    start_vol=dict(argstr='%d',
    position=-2,
    ),
    terminal_output=dict(nohash=True,
    ),
    )
    inputs = Complex.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value