Source code for analyzer.configuration
from attrs import define
@define
[docs]
class ExecutionConfig:
[docs]
warn_ulimit_ratio: int = 10
@define
[docs]
class DatasetConfig:
[docs]
default_dataset_paths: list[str]
[docs]
default_era_paths: list[str]
[docs]
cache_datasets_by_mtime: bool = True
[docs]
cache_eras_by_mtime: bool = True
@define
[docs]
class GeneralConfig:
[docs]
do_safety_checks: bool = True
[docs]
use_compression: bool = True
[docs]
compression_lib: str = "lz4"
[docs]
suppress_coffea_warnings: bool = True
[docs]
suppress_xrootd_warnings: bool = True
[docs]
base_data_path: str = ".application_data"
@define
[docs]
class PostConfig:
[docs]
static_resource_path: str = "analyzer_resources/static"
@define
[docs]
class CacheConfig:
[docs]
cache_subdir: str = "cache"
@define
[docs]
class CondorConfig:
[docs]
temp_location: str = "condor"
@define
[docs]
class Config:
[docs]
execution: ExecutionConfig
[docs]
datasets: DatasetConfig
[docs]
analysis_var: str = "ANALYSIS"
[docs]
post_var: str = "POSTPROCESSING"
[docs]
CONFIG = Config(
general=GeneralConfig(),
execution=ExecutionConfig(),
condor=CondorConfig(),
cache=CacheConfig(),
post=PostConfig(),
datasets=DatasetConfig(
["analyzer_resources/datasets"],
["analyzer_resources/eras"],
),
)