Example #1
0
def step_impl(context):
    """
    :type context behave.runner.Context
    """
    context.result = dp.import_from_dir("data/test_files", []

@then("we expect to get vectors of length 44100 \* 60 \+ 1")
def step_impl(context):
    """
    :type context behave.runner.Context
    """
    length = 44100 * 60 * 1

@step("we expect to get mapping of genres to discrete numbers")
def step_impl(context):
    """
    :type context behave.runner.Context
    """
    pass
def main(argv=None):
    if argv == None:
        argv = sys.argv[1:]
    args = __parse_arguments(argv)
    data = dp.import_from_dir(args.data_location)
    data.to_csv(args.output)