|
| __checksum |
| variable for checksum, calculated on first access
|
|
| __id |
| object to uniquely identify this entry (payload + iov)
|
|
Class to keep information about an entry in the testing payloads storage file
Definition at line 18 of file testing_payloads.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
line, |
|
|
|
basedir |
|
) |
| |
Create new entry from line in testing payloads storage file
Definition at line 21 of file testing_payloads.py.
21 def __init__(self, line, basedir):
22 """Create new entry from line in testing payloads storage file"""
24 name, revision, iov = line.split()
26 raise ValueError(
"line must be of the form 'dbstore/<payloadname> <revision> "
27 "<firstExp>,<firstRun>,<finalExp>,<finalRun>'")
30 self.revision = int(revision)
32 raise ValueError(
"revision must be an integer")
36 self.module = name.split(
"/")[1]
38 raise ValueError(
"payload name must be of the form dbstore/<payloadname>")
41 iov = [int(e)
for e
in iov.split(
",")]
43 raise ValueError(
"experiment and run numbers must be integers")
46 raise ValueError(
"IoV needs to be four values (firstExp,firstRun,finalExp,finalRun)")
49 self.filename = os.path.join(basedir, f
"dbstore_{self.module}_rev_{self.revision}.root")
51 self.firstRun = {
"exp": iov[0],
"run": iov[1]}
53 self.finalRun = {
"exp": iov[2],
"run": iov[3]}
55 self.__checksum =
None
57 self.__id = (self.module,) + tuple(iov)
◆ __eq__()
def __eq__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
Compare to other entries, only consider package, module and iov for equality
Definition at line 79 of file testing_payloads.py.
◆ __hash__()
◆ __le__()
def __le__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
Compare to other entries, only consider package, module and iov for equality
Definition at line 83 of file testing_payloads.py.
◆ __lt__()
def __lt__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
Compare to other entries, only consider package, module and iov for equality
Definition at line 87 of file testing_payloads.py.
◆ __repr__()
◆ checksum()
◆ iov_str()
◆ iov_tuple()
◆ normalize()
def normalize |
( |
|
self, |
|
|
|
name = None , |
|
|
|
root_version = 61408 |
|
) |
| |
Normalize the root file to have the same checksum for the same content
Definition at line 63 of file testing_payloads.py.
The documentation for this class was generated from the following file: