![]() |
Belle II Software
release-06-01-15
|
Public Member Functions | |
def | __init__ (self, **kwargs) |
def | encodeable_name (self) |
def | printable_name (self) |
def | as_dict (self) |
def | __str__ (self) |
Static Public Member Functions | |
def | resolve_path (location) |
Static Public Attributes | |
location = NotImplemented | |
Base class for skim test samples.
Definition at line 24 of file testfiles.py.
def __init__ | ( | self, | |
** | kwargs | ||
) |
Initialise Sample. Passing any unrecognised keywords will raise an error.
Definition at line 27 of file testfiles.py.
def as_dict | ( | self | ) |
Sample serialised as a dictionary.
Reimplemented in CustomSample, MCSample, and DataSample.
Definition at line 75 of file testfiles.py.
def encodeable_name | ( | self | ) |
Identifying string which is safe to be included as a filename component or as a key in the skim stats JSON file. As a rough naming convention, data samples should start with 'Data-', MC sample with 'MC-', and custom samples with 'Custom-'.
Reimplemented in CustomSample, MCSample, and DataSample.
Definition at line 41 of file testfiles.py.
def printable_name | ( | self | ) |
Human-readable name for displaying in printed tables.
Reimplemented in CustomSample, MCSample, and DataSample.
Definition at line 52 of file testfiles.py.
|
static |
Replace ``'${SampleDirectory}'`` with ``Sample.SampleDirectory``, and resolve the path. Parameters: location (str, pathlib.Path): Filename to be resolved. Returns: pathlib.Path: Resolved path.
Definition at line 59 of file testfiles.py.