5 from glob
import glob
as ls
6 from argparse
import ArgumentParser
as ap
10 parser.add_argument(
"-p", type=str, help=
'Path to files', default=
'./')
11 args = parser.parse_args()
15 all_files = [i.split(
"/")[-1]
for i
in sorted(ls(args.p +
"*"))]
23 if 'globalmedians' in p:
24 run = p[p.find(
"run")+3:p.find(
".csv")]
28 command =
"python $CONDB_DIR/bin/write_data.py -h ifdbprod2.fnal.gov -p 5451 -U tjyang -c {} -d {} pdunesp_prod pdunesp.distcorrnorm norm,norm_err".
format(p, data_type)
31 run = re.search(pattern,p).group(1)
36 command =
"python $CONDB_DIR/bin/write_data.py -h ifdbprod2.fnal.gov -p 5451 -U tjyang -c {} -d {} pdunesp_prod pdunesp.distcorrx x,dx,shape,shape_err".
format(p, data_type)
38 command =
"python $CONDB_DIR/bin/write_data.py -h ifdbprod2.fnal.gov -p 5451 -U tjyang -c {} -d {} pdunesp_prod pdunesp.distcorryz y,dy,z,dz,corr,corr_err".
format(p, data_type)
static bool format(QChar::Decomposition tag, QString &str, int index, int len)