diff --git a/scripts/acoustics.py b/scripts/acoustics.py index 43a1f954ba9c6bf4e09d26b6704716dee4d06f85..63906883e7e2208c6c34f19adf24bc69ab199165 100644 --- a/scripts/acoustics.py +++ b/scripts/acoustics.py @@ -31,19 +31,11 @@ def diff(first, second): return [item for item in first if item not in second] -parser = argparse.ArgumentParser(description = 'Online_monitoring') -parser.add_argument('-d', dest = 'det_id', type = str, nargs = 1, required = True, - help = 'The detector ID (e.g. D_ORCA005)') -parser.add_argument('-ndu', dest = 'n_dus', type = int, nargs = 1, required = True, - help = 'Number of DUs (e.g. 5)') -parser.add_argument('-o', dest = 'plot_dir', type = str, nargs = 1, required = True, - help = 'Directory in which the plot is saved') - -args = parser.parse_args() -detid = args.det_id[0] -directory = args.plot_dir[0] -N_DUS = args.n_dus[0] +args = docopt(__doc__) +detid = args['-d'] +directory = args['-o'] +N_DUS = args['-n'] db = kp.db.DBManager() sds = kp.db.StreamDS()