![]() |
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 252 of file DiskUtils.py.
| def python.DiskUtils.FileSet.__init__ | ( | self, | |
| iterator, | |||
| backend | |||
| ) |
Definition at line 263 of file DiskUtils.py.
| def python.DiskUtils.FileSet.__iter__ | ( | self | ) |
Definition at line 320 of file DiskUtils.py.
|
private |
Definition at line 454 of file DiskUtils.py.
|
private |
Definition at line 434 of file DiskUtils.py.
| def python.DiskUtils.FileSet.excluding | ( | self, | |
| pattern | |||
| ) |
Skip filenames matching the provided regular expression.
Definition at line 394 of file DiskUtils.py.
| def python.DiskUtils.FileSet.from_directory | ( | cls, | |
| path, | |||
backend = None |
|||
| ) |
Definition at line 281 of file DiskUtils.py.
| def python.DiskUtils.FileSet.from_ds_info | ( | cls, | |
| run, | |||
| project, | |||
| stream, | |||
| base, | |||
backend = None |
|||
| ) |
Definition at line 298 of file DiskUtils.py.
| def python.DiskUtils.FileSet.from_file_containing_list | ( | cls, | |
| path, | |||
backend = None |
|||
| ) |
Definition at line 286 of file DiskUtils.py.
| def python.DiskUtils.FileSet.from_glob | ( | cls, | |
| pattern, | |||
backend = None |
|||
| ) |
Definition at line 293 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 304 of file DiskUtils.py.
| def python.DiskUtils.FileSet.from_single_file | ( | cls, | |
| path, | |||
backend = None |
|||
| ) |
Definition at line 277 of file DiskUtils.py.
| def python.DiskUtils.FileSet.matching | ( | self, | |
| pattern | |||
| ) |
Only accept filenames matching the provided regular expression.
Definition at line 389 of file DiskUtils.py.
| def python.DiskUtils.FileSet.only_existing | ( | self, | |
setting = True |
|||
| ) |
Only use existing files.
Definition at line 408 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 413 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 418 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 376 of file DiskUtils.py.
| def python.DiskUtils.FileSet.use_files_from | ( | self, | |
| path | |||
| ) |
Use specific filenames from within the provided dataset.
Definition at line 399 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 423 of file DiskUtils.py.
|
private |
Definition at line 268 of file DiskUtils.py.
|
private |
Definition at line 271 of file DiskUtils.py.
|
private |
Definition at line 266 of file DiskUtils.py.
|
private |
Definition at line 270 of file DiskUtils.py.
|
private |
Definition at line 265 of file DiskUtils.py.
|
private |
Definition at line 272 of file DiskUtils.py.
|
private |
Definition at line 269 of file DiskUtils.py.
|
private |
Definition at line 267 of file DiskUtils.py.
| python.DiskUtils.FileSet.backend |
Definition at line 264 of file DiskUtils.py.
| python.DiskUtils.FileSet.broken |
Definition at line 273 of file DiskUtils.py.
| python.DiskUtils.FileSet.lb_map |
Definition at line 274 of file DiskUtils.py.
1.8.18