![]() |
Belle II Software
release-08-02-05
|
Public Member Functions | |
| def | from_json (cls, payload, iov=None) |
| def | __init__ (self, payload_id, name, revision, checksum, payload_url, base_url, iov_id=None, iov=None) |
| def | url (self) |
| def | __hash__ (self) |
| def | __eq__ (self, other) |
| def | __lt__ (self, other) |
| def | readable_iov (self) |
Public Attributes | |
| name | |
| name of the payload | |
| checksum | |
| checksum of the payload | |
| iov | |
| interval of validity | |
| revision | |
| revision, not used for comparisons | |
| payload_id | |
| payload id in CDB, not used for comparisons | |
| iov_id | |
| iov id in CDB, not used for comparisons | |
| base_url | |
| base url | |
| payload_url | |
| payload url | |
Small container class to help compare payload information for efficient comparison between globaltags
Definition at line 135 of file __init__.py.
| def __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 161 of file __init__.py.
| def __eq__ | ( | self, | |
| other | |||
| ) |
Check if two payloads are equal
Definition at line 191 of file __init__.py.
| def __hash__ | ( | self | ) |
Make object hashable
Definition at line 187 of file __init__.py.
| def __lt__ | ( | self, | |
| other | |||
| ) |
Sort payloads by name, iov, revision
Definition at line 195 of file __init__.py.
| def 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 140 of file __init__.py.
| def readable_iov | ( | self | ) |
return a human readable name for the IoV
Definition at line 199 of file __init__.py.
| def url | ( | self | ) |
Return the full url to the payload on the server
Definition at line 183 of file __init__.py.