ATLAS Offline Software
|
Public Member Functions | |
def | __init__ (self, iterator, backend) |
def | from_single_file (cls, path, backend=None) |
def | from_directory (cls, path, backend=None) |
def | from_file_containing_list (cls, path, backend=None) |
def | from_glob (cls, pattern, backend=None) |
def | from_ds_info (cls, run, project, stream, base, backend=None) |
def | from_input (cls, input_string, backend=None) |
def | __iter__ (self) |
def | strict_mode (self, setting=True) |
def | matching (self, pattern) |
def | excluding (self, pattern) |
def | use_files_from (self, path) |
def | only_existing (self, setting=True) |
def | only_latest (self, setting=True) |
def | only_single_dataset (self, setting=True) |
def | with_lumi_blocks (self, map_file=None) |
Public Attributes | |
backend | |
broken | |
lb_map | |
Private Member Functions | |
def | _with_lumi_blocks_from_map (self, map_file) |
def | _with_lumi_blocks_from_ara (self) |
Private Attributes | |
_iter | |
_existing | |
_white_pattern | |
_black_pattern | |
_strict | |
_explicit | |
_dedup | |
_single_dataset | |
Represents a list of input files. This class abstracts over the different ways files can be specified, and the different storage backends/protocols on which they reside. It is an iterator, and provides some methods for filtering the file set. E.g.: fs = FileSet.from_input('/eos/atlas/path/to/dataset/') for f in fs.matching(r'.*AOD.*').only_existing(): print(f)
Definition at line 281 of file DiskUtils.py.
def python.DiskUtils.FileSet.__init__ | ( | self, | |
iterator, | |||
backend | |||
) |
Definition at line 292 of file DiskUtils.py.
def python.DiskUtils.FileSet.__iter__ | ( | self | ) |
Definition at line 349 of file DiskUtils.py.
|
private |
Definition at line 483 of file DiskUtils.py.
|
private |
Definition at line 463 of file DiskUtils.py.
def python.DiskUtils.FileSet.excluding | ( | self, | |
pattern | |||
) |
Skip filenames matching the provided regular expression.
Definition at line 423 of file DiskUtils.py.
def python.DiskUtils.FileSet.from_directory | ( | cls, | |
path, | |||
backend = None |
|||
) |
Definition at line 310 of file DiskUtils.py.
def python.DiskUtils.FileSet.from_ds_info | ( | cls, | |
run, | |||
project, | |||
stream, | |||
base, | |||
backend = None |
|||
) |
Definition at line 327 of file DiskUtils.py.
def python.DiskUtils.FileSet.from_file_containing_list | ( | cls, | |
path, | |||
backend = None |
|||
) |
Definition at line 315 of file DiskUtils.py.
def python.DiskUtils.FileSet.from_glob | ( | cls, | |
pattern, | |||
backend = None |
|||
) |
Definition at line 322 of file DiskUtils.py.
def python.DiskUtils.FileSet.from_input | ( | cls, | |
input_string, | |||
backend = None |
|||
) |
Guess what kind of input file specification was provided.
Definition at line 333 of file DiskUtils.py.
def python.DiskUtils.FileSet.from_single_file | ( | cls, | |
path, | |||
backend = None |
|||
) |
Definition at line 306 of file DiskUtils.py.
def python.DiskUtils.FileSet.matching | ( | self, | |
pattern | |||
) |
Only accept filenames matching the provided regular expression.
Definition at line 418 of file DiskUtils.py.
def python.DiskUtils.FileSet.only_existing | ( | self, | |
setting = True |
|||
) |
Only use existing files.
Definition at line 437 of file DiskUtils.py.
def python.DiskUtils.FileSet.only_latest | ( | self, | |
setting = True |
|||
) |
Keep only the latest retry from sets like `*.1`, `*.2`.
Definition at line 442 of file DiskUtils.py.
def python.DiskUtils.FileSet.only_single_dataset | ( | self, | |
setting = True |
|||
) |
Require all files to be from the same dataset.
Definition at line 447 of file DiskUtils.py.
def python.DiskUtils.FileSet.strict_mode | ( | self, | |
setting = True |
|||
) |
When strict, errors are raised in the following cases (which otherwise cause the corresponding files to be silently skipped): * When LB info is requested but cannot be found for a file (because it was not in the map file, or we couldn't open the ROOT file). * When `only_existing` is set and a file is missing. * When a file list is provided and not all of the files it mentions were encountered by the end of iteration.
Definition at line 405 of file DiskUtils.py.
def python.DiskUtils.FileSet.use_files_from | ( | self, | |
path | |||
) |
Use specific filenames from within the provided dataset.
Definition at line 428 of file DiskUtils.py.
def python.DiskUtils.FileSet.with_lumi_blocks | ( | self, | |
map_file = None |
|||
) |
Lookup the luminosity blocks contained in each file. If a map file is provided it will be queried for the LB mapping, otherwise each file will be opened and accessed using AthenaROOTAccess which can be a little slow.
Definition at line 452 of file DiskUtils.py.
|
private |
Definition at line 297 of file DiskUtils.py.
|
private |
Definition at line 300 of file DiskUtils.py.
|
private |
Definition at line 295 of file DiskUtils.py.
|
private |
Definition at line 299 of file DiskUtils.py.
|
private |
Definition at line 294 of file DiskUtils.py.
|
private |
Definition at line 301 of file DiskUtils.py.
|
private |
Definition at line 298 of file DiskUtils.py.
|
private |
Definition at line 296 of file DiskUtils.py.
python.DiskUtils.FileSet.backend |
Definition at line 293 of file DiskUtils.py.
python.DiskUtils.FileSet.broken |
Definition at line 302 of file DiskUtils.py.
python.DiskUtils.FileSet.lb_map |
Definition at line 303 of file DiskUtils.py.