-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #505 from DUNE-DAQ/eflumerf/IntegtestUpdates
Use tpg_enabled to determine whether to generate tc-maker-1 app in ge…
- Loading branch information
Showing
6 changed files
with
138 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,66 @@ | ||
# OKS Configuration Generation | ||
This repository contains scripts for generating OKS database files. | ||
This repository contains scripts for generating and manipulating OKS database files. | ||
|
||
## createOKSdb | ||
## Manipulation Tools | ||
|
||
### oks_enable | ||
Add Resource objects to or remove from the `disabled` relationship of a Session | ||
|
||
### consolidate | ||
Merge the contents of several database files, putting all objects into a single output file. Output file will only include schemas. | ||
|
||
### consolidate_files | ||
Merge the contents of several database files, preserving included databases. Output file will contain only objects defined in files given on command line. | ||
|
||
### copy_configuration | ||
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. | ||
|
||
### get_apps | ||
Retrieve the DAQ applications defined in the given configuration | ||
|
||
### oks-format | ||
Ensure that database files are in the "DBE format", alphabetized and with correct spacing | ||
|
||
### oks_enable_tpg | ||
Enable or disable TPG for a Session's ReadoutApplications | ||
|
||
### validate | ||
Attempt to determine if a given Session configuration is valid and does not contain common errors | ||
|
||
## Generation Tools | ||
|
||
### createOKSdb | ||
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. | ||
|
||
## oks_enable | ||
|
||
Add Resource objects to or remove from the `disabled` relationship | ||
of a Session | ||
### dromap2oks | ||
Convert a JSON readout map file from dunedaq v4 to an OKS file. | ||
|
||
## dromap2oks | ||
Convert a JSON readout map file to an OKS file. | ||
|
||
## generate_readoutOKS | ||
### generate_readoutOKS | ||
|
||
Create an OKS configuration file defining ReadoutApplications for | ||
all readout groups defined in a readout map. | ||
|
||
## Additional Python Utilities | ||
|
||
### assets.py | ||
Read the DUNE-DAQ asset file database and return a path to a referenced asset file | ||
|
||
### generate_dataflowOKS.py | ||
Create a basic Dataflow Segment (DFO, DF application(s) and optionally a TPStream writer), using pre-defined objects. | ||
|
||
### generate_hsiOKS.py | ||
Create a basic FakeHSI Segment (FakeHSI app, HSI-to-TC app), using pre-defined objects | ||
|
||
### generate_hwmap.py | ||
Create a set of DetectorToDaqConnection objects, GeoIDs, and streams for the given number of links and applications. | ||
|
||
### generate_sessionOKS.py | ||
Create a Session using a number of input Segment databases. | ||
|
||
### generate_triggerOKS.py | ||
Create a basic Trigger Segment (mlt, optionally TC maker), using pre-defined objects. | ||
|
||
### utils.py | ||
Utilities for parsing OKS databases. Currently contains an include file search routine. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/env python3 | ||
import click | ||
import pathlib | ||
from daqconf.consolidate import copy_configuration | ||
|
||
@click.command() | ||
@click.argument('output_directory', type=click.Path(exists=True), nargs=1) | ||
@click.argument('databases', nargs=-1) | ||
def copy_config(output_directory, databases): | ||
"""Copy to OUTPUT_DIRECTORY configuration represented by DATABASES""" | ||
copy_configuration(pathlib.Path(output_directory), databases) | ||
|
||
if __name__ == '__main__': | ||
copy_config() |