![]() |
Belle II Software prerelease-10-00-00a
|
Public Member Functions | |
from_json (cls, payload, iov=None) | |
__init__ (self, payload_id, name, revision, checksum, payload_url, base_url, iov_id=None, iov=None) | |
url (self) | |
__hash__ (self) | |
__eq__ (self, other) | |
__lt__ (self, other) | |
readable_iov (self) | |
Public Attributes | |
name = name | |
name of the payload | |
checksum = checksum | |
checksum of the payload | |
tuple | iov = iov |
interval of validity | |
revision = revision | |
revision, not used for comparisons | |
payload_id = payload_id | |
payload id in CDB, not used for comparisons | |
iov_id = iov_id | |
iov id in CDB, not used for comparisons | |
base_url = base_url | |
base url | |
payload_url = payload_url | |
payload url | |
Small container class to help compare payload information for efficient comparison between globaltags
Definition at line 136 of file __init__.py.
__init__ | ( | self, | |
payload_id, | |||
name, | |||
revision, | |||
checksum, | |||
payload_url, | |||
base_url, | |||
iov_id = None, | |||
iov = None ) |
Create a new object from the given information
Definition at line 162 of file __init__.py.
__eq__ | ( | self, | |
other ) |
Check if two payloads are equal
Definition at line 192 of file __init__.py.
__hash__ | ( | self | ) |
Make object hashable
Definition at line 188 of file __init__.py.
__lt__ | ( | self, | |
other ) |
Sort payloads by name, iov, revision
Definition at line 196 of file __init__.py.
from_json | ( | cls, | |
payload, | |||
iov = None ) |
Set all internal members from the json information of the payload and the iov. Arguments: payload (dict): json information of the payload as returned by REST api iov (dict): json information of the iov as returned by REST api
Definition at line 141 of file __init__.py.
readable_iov | ( | self | ) |
return a human readable name for the IoV
Definition at line 200 of file __init__.py.
url | ( | self | ) |
Return the full url to the payload on the server
Definition at line 184 of file __init__.py.
base_url = base_url |
base url
Definition at line 179 of file __init__.py.
checksum = checksum |
checksum of the payload
Definition at line 169 of file __init__.py.
iov = iov |
interval of validity
Definition at line 171 of file __init__.py.
iov_id = iov_id |
iov id in CDB, not used for comparisons
Definition at line 177 of file __init__.py.
name = name |
name of the payload
Definition at line 167 of file __init__.py.
payload_id = payload_id |
payload id in CDB, not used for comparisons
Definition at line 175 of file __init__.py.
payload_url = payload_url |
payload url
Definition at line 181 of file __init__.py.
revision = revision |
revision, not used for comparisons
Definition at line 173 of file __init__.py.