|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Functions | |
| list[str] | get_all_includes (conffwk.Configuration db, str file) |
| None | consolidate_db (str oksfile, str output_file, Optional[str] session_id=None) |
| Tuple[conffwk.Configuration, conffwk.Configuration] | create_copy_template (str oksfile, str output_file) |
| None | consolidate_full (conffwk.Configuration db, conffwk.Configuration new_db) |
| None | consolidate_session (conffwk.Configuration db, conffwk.Configuration new_db, str session_id) |
| list[conffwk.Configuration] | get_relationships (conffwk.Configuration db, conffwk.Configuration current_dal, list[conffwk.Configuration] dal_list) |
| None | copy_dals_to_cfg (conffwk.Configuration new_db, list[conffwk.Configuration] dal_list) |
| list[conffwk.Configuration] | copy_configuration (Path dest_dir, list[conffwk.Configuration] input_files) |
| None | consolidate_files (str oksfile, *input_files) |
Variables | |
| log = getLogger('daqconf.consolidate') | |
| None consolidate_db | ( | str | oksfile, |
| str | output_file, | ||
| Optional[str] | session_id = None ) |
Consolidates a session database files into a single file.
The consolidated file contains all the schema and data required to define the entire
session. If session_id is None, all sessions will be consolidated into the single
output file.
Args:
oksfile: OKS file(s) to consolidate
output_file: File to output consolidated database to
session_id: Name of session, defaults to None
Returns:
None
Raises:
None
Definition at line 32 of file consolidate.py.
| None consolidate_files | ( | str | oksfile, |
| * | input_files ) |
Definition at line 190 of file consolidate.py.
| None consolidate_full | ( | conffwk.Configuration | db, |
| conffwk.Configuration | new_db ) |
Consolidates ALL dal objects in db into new_db :param db: A conffwk.Configuration containing objects you want to copy over :param new_db: A conffwk.Configuration you want to copy objects into
Definition at line 94 of file consolidate.py.
| None consolidate_session | ( | conffwk.Configuration | db, |
| conffwk.Configuration | new_db, | ||
| str | session_id ) |
Consolidates all objects related to the session with id 'session_id' into a single file :param db: A conffwk.Configuration containing objects you want to copy over :param new_db: A conffwk.Configuration you want to copy objects into :param session_id: Name of session
Definition at line 103 of file consolidate.py.
| list[conffwk.Configuration] copy_configuration | ( | Path | dest_dir, |
| list[conffwk.Configuration] | input_files ) |
Definition at line 154 of file consolidate.py.
| None copy_dals_to_cfg | ( | conffwk.Configuration | new_db, |
| list[conffwk.Configuration] | dal_list ) |
Copy a list of dals into a configuration
Definition at line 142 of file consolidate.py.
| Tuple[conffwk.Configuration, conffwk.Configuration] create_copy_template | ( | str | oksfile, |
| str | output_file ) |
Create a blank oks .data.xml template file with all the schema includes of oksfile.
Args:
oksfile: OKS file to copy includes from
output_file: OKS file to copy includes into
Returns:
Tuple of old_db, copied_db
Definition at line 67 of file consolidate.py.
| list[str] get_all_includes | ( | conffwk.Configuration | db, |
| str | file ) |
Recursively get all includes from an OKS database
Args:
db (conffwk.Configuration): The OKS database to get includes from
file (str): The file to get includes from
Returns:
list(str): A list of all includes in the database
Raises:
None
Definition at line 10 of file consolidate.py.
| list[conffwk.Configuration] get_relationships | ( | conffwk.Configuration | db, |
| conffwk.Configuration | current_dal, | ||
| list[conffwk.Configuration] | dal_list ) |
Recurssively get all objects related to current_dal
Definition at line 122 of file consolidate.py.
| consolidate.log = getLogger('daqconf.consolidate') |
Definition at line 7 of file consolidate.py.