◆ __init__()
def makeDTCalibBlob_pickPhase.logFile.__init__ |
( |
|
self, |
|
|
|
logpath |
|
) |
| |
Definition at line 102 of file makeDTCalibBlob_pickPhase.py.
103 self.logfile =
open(logpath,
"r", newline=
"\n")
104 self.lines = self.logfile.readlines()
105 self.runs = self.runsFromLog()
106 self.name = pathlib.Path(logpath).stem
◆ __str__()
def makeDTCalibBlob_pickPhase.logFile.__str__ |
( |
|
self | ) |
|
Definition at line 114 of file makeDTCalibBlob_pickPhase.py.
116 for line
in self.lines:
117 if not line.startswith(
"Run "):
continue
118 line = line.strip(
"\n")
120 return "\n".
join(toprint)
◆ getBCSnapshots()
def makeDTCalibBlob_pickPhase.logFile.getBCSnapshots |
( |
|
self | ) |
|
Definition at line 137 of file makeDTCalibBlob_pickPhase.py.
137 def getBCSnapshots(self):
138 indbs = [ g
for pd
in self.topdirs
for g
in glob.glob(f
"{pd}/*/SnapshotBadChannel.db") ]
◆ getDBfiles()
def makeDTCalibBlob_pickPhase.logFile.getDBfiles |
( |
|
self | ) |
|
Definition at line 131 of file makeDTCalibBlob_pickPhase.py.
131 def getDBfiles(self):
132 indbs = [ g
for pd
in self.topdirs
for g
in glob.glob(f
"{pd}/*/mysql.db") ]
134 self.pooldirs =
list(
set([
str(pathlib.Path(i).parents[0])
for i
in indbs ]) )
◆ getTopDirs()
def makeDTCalibBlob_pickPhase.logFile.getTopDirs |
( |
|
self, |
|
|
|
topdir |
|
) |
| |
Definition at line 121 of file makeDTCalibBlob_pickPhase.py.
121 def getTopDirs(self, topdir):
123 for run
in self.runs:
124 self.infiles = glob.glob(f
"{topdir}/*{run}*/root_files/*{run}*")
125 self.topdirs.
extend(
list(
set([
str(pathlib.Path(i).parents[1])
for i
in self.infiles ])) )
126 self.topdirs =
list(
set(self.topdirs))
127 self.sqldbs = self.getDBfiles()
128 self.bcsnapshots = self.getBCSnapshots()
◆ runsFromLog()
def makeDTCalibBlob_pickPhase.logFile.runsFromLog |
( |
|
self | ) |
|
Definition at line 108 of file makeDTCalibBlob_pickPhase.py.
108 def runsFromLog(self):
110 for line
in self.lines:
111 if not line.startswith(
"Run "):
continue
112 runs.append(
int(line.split(
"Run")[1].
split(
":")[0]))
◆ bcsnapshots
makeDTCalibBlob_pickPhase.logFile.bcsnapshots |
◆ infiles
makeDTCalibBlob_pickPhase.logFile.infiles |
◆ lines
makeDTCalibBlob_pickPhase.logFile.lines |
◆ logfile
makeDTCalibBlob_pickPhase.logFile.logfile |
◆ name
makeDTCalibBlob_pickPhase.logFile.name |
◆ pooldirs
makeDTCalibBlob_pickPhase.logFile.pooldirs |
◆ runs
makeDTCalibBlob_pickPhase.logFile.runs |
◆ sqldbs
makeDTCalibBlob_pickPhase.logFile.sqldbs |
◆ topdirs
makeDTCalibBlob_pickPhase.logFile.topdirs |
The documentation for this class was generated from the following file:
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.