def test_PlotTimeSeries_outputs():
    output_map = dict(out_file=dict(), )
    outputs = PlotTimeSeries.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_PlotTimeSeries_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    plot_size=dict(argstr='%s',
    ),
    labels=dict(argstr='%s',
    ),
    y_min=dict(xor=('y_range',),
    argstr='--ymin=%.2f',
    ),
    title=dict(argstr='%s',
    ),
    args=dict(argstr='%s',
    ),
    sci_notation=dict(argstr='--sci',
    ),
    plot_range=dict(xor=('plot_start', 'plot_finish'),
    argstr='%s',
    ),
    plot_start=dict(xor=('plot_range',),
    argstr='--start=%d',
    ),
    legend_file=dict(argstr='--legend=%s',
    ),
    in_file=dict(position=1,
    mandatory=True,
    argstr='%s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    x_units=dict(argstr='-u %d',
    usedefault=True,
    ),
    x_precision=dict(argstr='--precision=%d',
    ),
    y_max=dict(xor=('y_range',),
    argstr='--ymax=%.2f',
    ),
    output_type=dict(),
    y_range=dict(xor=('y_min', 'y_max'),
    argstr='%s',
    ),
    plot_finish=dict(xor=('plot_range',),
    argstr='--finish=%d',
    ),
    out_file=dict(argstr='-o %s',
    hash_files=False,
    genfile=True,
    ),
    )
    inputs = PlotTimeSeries.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.º 3
0
def test_PlotTimeSeries_outputs():
    output_map = dict(out_file=dict(),
    )
    outputs = PlotTimeSeries.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
def test_PlotTimeSeries_inputs():
    input_map = dict(
        args=dict(argstr='%s', ),
        environ=dict(
            nohash=True,
            usedefault=True,
        ),
        ignore_exception=dict(
            nohash=True,
            usedefault=True,
        ),
        in_file=dict(
            argstr='%s',
            mandatory=True,
            position=1,
        ),
        labels=dict(argstr='%s', ),
        legend_file=dict(argstr='--legend=%s', ),
        out_file=dict(
            argstr='-o %s',
            genfile=True,
            hash_files=False,
        ),
        output_type=dict(),
        plot_finish=dict(
            argstr='--finish=%d',
            xor=('plot_range', ),
        ),
        plot_range=dict(
            argstr='%s',
            xor=('plot_start', 'plot_finish'),
        ),
        plot_size=dict(argstr='%s', ),
        plot_start=dict(
            argstr='--start=%d',
            xor=('plot_range', ),
        ),
        sci_notation=dict(argstr='--sci', ),
        terminal_output=dict(
            mandatory=True,
            nohash=True,
        ),
        title=dict(argstr='%s', ),
        x_precision=dict(argstr='--precision=%d', ),
        x_units=dict(
            argstr='-u %d',
            usedefault=True,
        ),
        y_max=dict(
            argstr='--ymax=%.2f',
            xor=('y_range', ),
        ),
        y_min=dict(
            argstr='--ymin=%.2f',
            xor=('y_range', ),
        ),
        y_range=dict(
            argstr='%s',
            xor=('y_min', 'y_max'),
        ),
    )
    inputs = PlotTimeSeries.input_spec()

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