parser.add_argument('-o','--offset',type=int,metavar='INT',default=0,help='Train ID offset')
parser.add_argument('-c','--xgm_cut',type=float,metavar='INTENSITY',default=500,help='XGM intensity threshold in uJ.')
parser.add_argument('-e','--poly',action="store_true",default=False,help='Wheteher to expand PES data in higher order polynomials.')
parser.add_argument('-w','--weight',action="store_true",default=False,help='Whether to reweight data as a function of the pulse energy to make it invariant to that.')