#!/usr/bin/python import argparse from lasp.lasp_record import Recording from lasp.lasp_avstream import AvStream parser = argparse.ArgumentParser( description='Acquire data and store a measurement file' ) parser.add_argument('filename', type=str, help='File name to record to.' ' Extension is automatically added.') parser.add_argument('--duration', '-d', type=float, help='The recording duration in [s]') parser.add_argument('--comment', '-c', type=str, help='Add a measurement comment, optionally') args = parser.parse_args() stream = AvStream() rec = Recording(args.filename, stream, args.duration) rec.start() stream.stop()