Пример #1
0
def test_correct_NMIs(tmpdir):
    """ Create a temporary csv output """
    file_name = "examples/unzipped/Example_NEM12_actual_interval.csv"
    output_path = tmpdir + "test_output.csv"
    output_file = output_as_csv(file_name, output_file=output_path)
    print(output_file)
    assert output_file == output_path
Пример #2
0
def output(nemfile, verbose, outdir):
    """ Output NEM file to transposed CSV.

    NEMFILE is the name of the file to parse.
    """
    if verbose:
        logging.basicConfig(level="DEBUG", format=LOG_FORMAT)
    for fname in output_as_csv(nemfile, output_dir=outdir):
        click.echo(f"Created {fname}")
Пример #3
0
def test_csv_output(tmpdir):
    """ Create a temporary csv output """
    file_name = "examples/unzipped/Example_NEM12_actual_interval.csv"
    output_files = output_as_csv(file_name, output_dir=tmpdir)
    assert len(output_files) == 1
Пример #4
0
def output_file():

    from nemreader import output_as_csv
    file_name = 'example.csv'
    output_file = output_as_csv(file_name)
def output_file():

    from nemreader import output_as_csv

    file_name = "examples/unzipped/Example_NEM12_multiple_meters.csv"
    output_file = output_as_csv(file_name)