DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dump_buffer_command_gen Namespace Reference

Functions

 generate_daphne_rc_cmds (directory, n_samples, app_name, JSON_DIR, DEBUG=False)
 

Variables

 console = Console()
 
 default_load_path
 

Function Documentation

◆ generate_daphne_rc_cmds()

dump_buffer_command_gen.generate_daphne_rc_cmds ( directory,
n_samples,
app_name,
JSON_DIR,
DEBUG = False )

Definition at line 19 of file dump_buffer_command_gen.py.

25 ):
26
27 cmds = [
28 ("dump_buffers", acmd([ ("", DaphneV2ControllerModule.DumpBuffers(
29 directory=directory,
30 n_samples=n_samples))])),
31 ]
32
33 data_dir = f"{JSON_DIR}/data"
34
35 for c,d in cmds:
36 cfg = { "modules": [
37 {"data": {"directory": directory,"n_samples": n_samples},"match": ""}]
38 }
39 with open(f"{data_dir}/{app_name}_{c}.json", 'w') as f:
40 json.dump(cfg, f, indent=4, sort_keys=True)
41

Variable Documentation

◆ console

dump_buffer_command_gen.console = Console()

Definition at line 2 of file dump_buffer_command_gen.py.

◆ default_load_path

dump_buffer_command_gen.default_load_path

Definition at line 7 of file dump_buffer_command_gen.py.