ftag.sample#

Classes#

Sample

Dataclass which holds info about a specific sample.

Module Contents#

class ftag.sample.Sample#

Dataclass which holds info about a specific sample.

pattern#

Filepattern for the h5 files

Type:

Path | str | tuple[Path | str, …]

ntuple_dir#

Ntuple directory where the h5 files are stored, by default None

Type:

Path | str | None, optional

name#

Name of the sample, for internal identification, by default None

Type:

str | None, optional

weights#

List of weights for this sample, by default None

Type:

list[float] | None, optional

skip_checks#

Decide, if certain checks are skipped, by default False

Type:

bool, optional

pattern: pathlib.Path | str | tuple[pathlib.Path | str, Ellipsis]#
ntuple_dir: pathlib.Path | str | None = None#
name: str | None = None#
weights: list[float] | None = None#
skip_checks: bool = False#
__post_init__() None#
property path: tuple[pathlib.Path, Ellipsis]#
property files: list[str]#
property num_files: int#
property dsid: list[str]#
property sample_id: list[str]#
property tags: list[str]#
property ptag: list[str]#
property rtag: list[str]#
property dumper_tag: list[str]#
virtual_file(**kwargs) list[pathlib.Path | str]#
__str__()#
__lt__(other)#
__eq__(other)#