Beispiel #1
0
def main():
    mod = ArgSchemaParserPlus(schema_type=InputParameters,
                              output_schema_type=OutputParameters)
    output = subsample(mod.args)
    output.update({"input_parameters": mod.args})
    if "output_json" in mod.args:
        mod.output(output, indent=2)
    else:
        logger.info(mod.get_output_json(output))
Beispiel #2
0
def main():

    mod = ArgSchemaParserPlus(schema_type=InputParameters,
                              output_schema_type=OutputParameters)
    output = align_timestamps(mod.args)

    output.update({"input_parameters": mod.args})
    if "output_json" in mod.args:
        mod.output(output, indent=2)
    else:
        print(mod.get_output_json(output))
Beispiel #3
0
def main():

    mod = ArgSchemaParserPlus(schema_type=InputParameters,
                              output_schema_type=OutputSchema)
    output = build_stimulus_table(**mod.args)

    output.update({"input_parameters": mod.args})
    if "output_json" in mod.args:
        mod.output(output, indent=2)
    else:
        print(mod.get_output_json(output))
Beispiel #4
0
def main():
    mod = ArgSchemaParserPlus(schema_type=InputParameters,
                              output_schema_type=OutputSchema)
    output = build_stimulus_table(**mod.args)

    write_or_print_outputs(data=output, parser=mod)
Beispiel #5
0
def main():
    mod = ArgSchemaParserPlus(schema_type=InputParameters,
                              output_schema_type=OutputParameters)
    output = subsample(mod.args)
    write_or_print_outputs(data=output, parser=mod)
Beispiel #6
0
    velocities = extract_running_speeds(
        frame_times=frame_times,
        dx_deg=dx_deg,
        vsig=vsig,
        vin=vin,
        wheel_radius=wheel_radius,
        subject_position=subject_position,
        use_median_duration=use_median_duration)

    raw_data = pd.DataFrame({
        "vsig": vsig,
        "vin": vin,
        "frame_time": frame_times,
        "dx": dx_deg
    })

    store = pd.HDFStore(output_path)
    store.put("running_speed", velocities)
    store.put("raw_data", raw_data)
    store.close()

    return {"output_path": output_path}


if __name__ == "__main__":
    mod = ArgSchemaParserPlus(schema_type=InputParameters,
                              output_schema_type=OutputParameters)

    output = main(**mod.args)
    write_or_print_outputs(data=output, parser=mod)
Beispiel #7
0
        subject_position=subject_position,
        use_median_duration=use_median_duration)

    raw_data = pd.DataFrame({
        "vsig": vsig,
        "vin": vin,
        "frame_time": frame_times,
        "dx": dx_deg
    })

    store = pd.HDFStore(output_path)
    store.put("running_speed", velocities)
    store.put("raw_data", raw_data)
    store.close()

    return {"output_path": output_path}


if __name__ == "__main__":

    mod = ArgSchemaParserPlus(schema_type=InputParameters,
                              output_schema_type=OutputParameters)

    output = main(**mod.args)
    output.update({"input_parameters": mod.args})

    if "output_json" in mod.args:
        mod.output(output, indent=2)
    else:
        print(mod.get_output_json(output))