Ejemplo n.º 1
0
def test_SFPICOCalibData_outputs():
    output_map = dict(PICOCalib=dict(),
    calib_info=dict(),
    )
    outputs = SFPICOCalibData.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
Ejemplo n.º 2
0
def test_SFPICOCalibData_outputs():
    output_map = dict(PICOCalib=dict(),
    calib_info=dict(),
    )
    outputs = SFPICOCalibData.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
Ejemplo n.º 3
0
def test_SFPICOCalibData_inputs():
    input_map = dict(
        args=dict(argstr='%s', ),
        environ=dict(
            nohash=True,
            usedefault=True,
        ),
        ignore_exception=dict(
            nohash=True,
            usedefault=True,
        ),
        info_file=dict(
            argstr='-infooutputfile %s',
            genfile=True,
            hash_files=False,
            mandatory=True,
        ),
        onedtfarange=dict(
            argstr='-onedtfarange %s',
            units='NA',
        ),
        onedtfastep=dict(
            argstr='-onedtfastep %f',
            units='NA',
        ),
        out_file=dict(
            argstr='> %s',
            genfile=True,
            position=-1,
        ),
        scheme_file=dict(
            argstr='-schemefile %s',
            mandatory=True,
        ),
        seed=dict(
            argstr='-seed %f',
            units='NA',
        ),
        snr=dict(
            argstr='-snr %f',
            units='NA',
        ),
        terminal_output=dict(nohash=True, ),
        trace=dict(
            argstr='-trace %f',
            units='NA',
        ),
        twodtanglerange=dict(
            argstr='-twodtanglerange %s',
            units='NA',
        ),
        twodtanglestep=dict(
            argstr='-twodtanglestep %f',
            units='NA',
        ),
        twodtfarange=dict(
            argstr='-twodtfarange %s',
            units='NA',
        ),
        twodtfastep=dict(
            argstr='-twodtfastep %f',
            units='NA',
        ),
        twodtmixmax=dict(
            argstr='-twodtmixmax %f',
            units='NA',
        ),
        twodtmixstep=dict(
            argstr='-twodtmixstep %f',
            units='NA',
        ),
    )
    inputs = SFPICOCalibData.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value
Ejemplo n.º 4
0
def test_SFPICOCalibData_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    twodtfastep=dict(units='NA',
    argstr='-twodtfastep %f',
    ),
    out_file=dict(position=-1,
    genfile=True,
    argstr='> %s',
    ),
    trace=dict(units='NA',
    argstr='-trace %f',
    ),
    args=dict(argstr='%s',
    ),
    twodtmixmax=dict(units='NA',
    argstr='-twodtmixmax %f',
    ),
    twodtmixstep=dict(units='NA',
    argstr='-twodtmixstep %f',
    ),
    twodtfarange=dict(units='NA',
    argstr='-twodtfarange %s',
    ),
    scheme_file=dict(mandatory=True,
    argstr='-schemefile %s',
    ),
    onedtfarange=dict(units='NA',
    argstr='-onedtfarange %s',
    ),
    seed=dict(units='NA',
    argstr='-seed %f',
    ),
    snr=dict(units='NA',
    argstr='-snr %f',
    ),
    onedtfastep=dict(units='NA',
    argstr='-onedtfastep %f',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    info_file=dict(hash_files=False,
    genfile=True,
    mandatory=True,
    argstr='-infooutputfile %s',
    ),
    twodtanglerange=dict(units='NA',
    argstr='-twodtanglerange %s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    twodtanglestep=dict(units='NA',
    argstr='-twodtanglestep %f',
    ),
    )
    inputs = SFPICOCalibData.input_spec()

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