22 since, until=(TileCalibTools.MAXRUN,TileCalibTools.MAXLBK)):
26 folder=
"/TILE/OFL02/STATUS/ADC"
28 mgr = TileBchTools.TileBchMgr()
29 mgr.setLogLvl(logging.DEBUG)
32 log.info(
"Initializing with no bad channels at tag=%s and time=%s", tag,(0,0))
33 mgr.initialize(db, folder, tag, since)
36 log.info(
"Updating from file %s", bchFile)
37 mgr.updateFromFile(bchFile)
44 log.info(
"bad channels after update")
50 mgr.commitToDb(db, folder, tag, TileBchDecoder.BitPat_ofl01, os.getlogin(), bchFile, since, until)