This repository contains scripts for generating and manipulating OKS database files.
Commandline utility to visually inspect and verify configurations databases and the objects they contain. Documenation available here.
Commandline utility to generate a graphical flow diagram of a full configuration session or one of its applications or segments. Documentation available here.
Add Resource objects to or remove from the disabled
relationship of a Session
Merge the contents of several database files, putting all objects into a single output file. Output file will only include schemas.
Merge the contents of several database files, preserving included databases. Output file will contain only objects defined in files given on command line.
Copy the input file(s) to the specified directory, also moving any included files and updating include paths, to create a clone of the configuration databases.
Retrieve the DAQ applications defined in the given configuration
Ensure that database files are in the "DBE format", alphabetized and with correct spacing
Enable or disable TPG for a Session's ReadoutApplications
Attempt to determine if a given Session configuration is valid and does not contain common errors
Attempt to replicate OKS' Data Base editor within Python. Full details are here. Current implementation is very incomplete so use with caution.
A script that generates an 'empty' OKS database, just containging the include files for the core schema and any other schema/data files you specify on the commad line.
Convert a JSON readout map file from dunedaq v4 to an OKS file.
Create an OKS configuration file defining ReadoutApplications for all readout groups defined in a readout map.
Read the DUNE-DAQ asset file database and return a path to a referenced asset file
A collection of methods to generate segments and sessions.
### generate_hwmap.py
Create a set of DetectorToDaqConnection objects, GeoIDs, and streams for the given number of links and applications.
Utilities for parsing OKS databases. Currently contains an include file search routine.