|
def | __init__ (self, filename, globaltag, payloads) |
|
def | check (self, exp, run) |
|
|
| _globaltag |
|
| _payloads |
|
| _localpy |
|
| _localcpp |
|
Simple class to obtain all valid payloads matching a given set of names for
a given experiment and run and compare the python and the C++
implementation.
Definition at line 13 of file local_metadata_provider.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
filename, |
|
|
|
globaltag, |
|
|
|
payloads |
|
) |
| |
Create the local metadata providers for the given globaltag and payload names
Definition at line 35 of file local_metadata_provider.py.
35 def __init__(self, filename, globaltag, payloads):
36 """Create the local metadata providers for the given globaltag and payload names"""
37 self._globaltag = globaltag
38 self._payloads = payloads
39 self._localpy = LocalMetadataProvider(filename)
40 self._localcpp = self.create_cpp_metadataprovider(filename, [globaltag])
◆ check()
def check |
( |
|
self, |
|
|
|
exp, |
|
|
|
run |
|
) |
| |
Check if the c++ and python version return the same payload revisions
If not raise a ValueError, if yes return the list of payloads and their
revision valid for the given exp,run
Definition at line 42 of file local_metadata_provider.py.
◆ create_cpp_metadataprovider()
def create_cpp_metadataprovider |
( |
|
filename, |
|
|
|
globaltags |
|
) |
| |
|
static |
Jump through some hoops to create a C++ instance of the local metadata
provider so that we can check the framework implementation and compare
it to the python version
Definition at line 20 of file local_metadata_provider.py.
The documentation for this class was generated from the following file: