diff --git a/docs/pyerrors/input/openQCD.html b/docs/pyerrors/input/openQCD.html index 3e994406..2435cc2a 100644 --- a/docs/pyerrors/input/openQCD.html +++ b/docs/pyerrors/input/openQCD.html @@ -1385,27 +1385,29 @@

1286 imagsamples[repnum][t].append(corrres[1][t]) 1287 if 'idl' in kwargs: 1288 left_idl = list(left_idl) -1289 if len(left_idl) > 0: -1290 warnings.warn('Could not find idls ' + str(left_idl) + ' in replikum of file ' + file, UserWarning) -1291 repnum += 1 -1292 s = "Read correlator " + corr + " from " + str(repnum) + " replika with idls" + str(realsamples[0][t]) -1293 for rep in range(1, repnum): -1294 s += ", " + str(realsamples[rep][t]) -1295 print(s) -1296 print("Asserted run parameters:\n T:", tmax, "kappa:", kappa, "csw:", csw, "dF:", dF, "zF:", zF, "bnd:", bnd) -1297 -1298 # we have the data now... but we need to re format the whole thing and put it into Corr objects. +1289 if expected_idl[repnum] == left_idl: +1290 raise ValueError("None of the idls searched for were found in replikum of file " + file) +1291 elif len(left_idl) > 0: +1292 warnings.warn('Could not find idls ' + str(left_idl) + ' in replikum of file ' + file, UserWarning) +1293 repnum += 1 +1294 s = "Read correlator " + corr + " from " + str(repnum) + " replika with idls" + str(realsamples[0][t]) +1295 for rep in range(1, repnum): +1296 s += ", " + str(realsamples[rep][t]) +1297 print(s) +1298 print("Asserted run parameters:\n T:", tmax, "kappa:", kappa, "csw:", csw, "dF:", dF, "zF:", zF, "bnd:", bnd) 1299 -1300 compObs = [] +1300 # we have the data now... but we need to re format the whole thing and put it into Corr objects. 1301 -1302 for t in range(int(len(tmpcorr) / 2)): -1303 compObs.append(CObs(Obs([realsamples[rep][t] for rep in range(repnum)], names=names, idl=cnfgs), -1304 Obs([imagsamples[rep][t] for rep in range(repnum)], names=names, idl=cnfgs))) -1305 -1306 if len(compObs) == 1: -1307 return compObs[0] -1308 else: -1309 return Corr(compObs) +1302 compObs = [] +1303 +1304 for t in range(int(len(tmpcorr) / 2)): +1305 compObs.append(CObs(Obs([realsamples[rep][t] for rep in range(repnum)], names=names, idl=cnfgs), +1306 Obs([imagsamples[rep][t] for rep in range(repnum)], names=names, idl=cnfgs))) +1307 +1308 if len(compObs) == 1: +1309 return compObs[0] +1310 else: +1311 return Corr(compObs) @@ -2584,27 +2586,29 @@

Returns
1287 imagsamples[repnum][t].append(corrres[1][t]) 1288 if 'idl' in kwargs: 1289 left_idl = list(left_idl) -1290 if len(left_idl) > 0: -1291 warnings.warn('Could not find idls ' + str(left_idl) + ' in replikum of file ' + file, UserWarning) -1292 repnum += 1 -1293 s = "Read correlator " + corr + " from " + str(repnum) + " replika with idls" + str(realsamples[0][t]) -1294 for rep in range(1, repnum): -1295 s += ", " + str(realsamples[rep][t]) -1296 print(s) -1297 print("Asserted run parameters:\n T:", tmax, "kappa:", kappa, "csw:", csw, "dF:", dF, "zF:", zF, "bnd:", bnd) -1298 -1299 # we have the data now... but we need to re format the whole thing and put it into Corr objects. +1290 if expected_idl[repnum] == left_idl: +1291 raise ValueError("None of the idls searched for were found in replikum of file " + file) +1292 elif len(left_idl) > 0: +1293 warnings.warn('Could not find idls ' + str(left_idl) + ' in replikum of file ' + file, UserWarning) +1294 repnum += 1 +1295 s = "Read correlator " + corr + " from " + str(repnum) + " replika with idls" + str(realsamples[0][t]) +1296 for rep in range(1, repnum): +1297 s += ", " + str(realsamples[rep][t]) +1298 print(s) +1299 print("Asserted run parameters:\n T:", tmax, "kappa:", kappa, "csw:", csw, "dF:", dF, "zF:", zF, "bnd:", bnd) 1300 -1301 compObs = [] +1301 # we have the data now... but we need to re format the whole thing and put it into Corr objects. 1302 -1303 for t in range(int(len(tmpcorr) / 2)): -1304 compObs.append(CObs(Obs([realsamples[rep][t] for rep in range(repnum)], names=names, idl=cnfgs), -1305 Obs([imagsamples[rep][t] for rep in range(repnum)], names=names, idl=cnfgs))) -1306 -1307 if len(compObs) == 1: -1308 return compObs[0] -1309 else: -1310 return Corr(compObs) +1303 compObs = [] +1304 +1305 for t in range(int(len(tmpcorr) / 2)): +1306 compObs.append(CObs(Obs([realsamples[rep][t] for rep in range(repnum)], names=names, idl=cnfgs), +1307 Obs([imagsamples[rep][t] for rep in range(repnum)], names=names, idl=cnfgs))) +1308 +1309 if len(compObs) == 1: +1310 return compObs[0] +1311 else: +1312 return Corr(compObs)