NotImplementedError when setting output_type: RAW and using LbExec
AFAIU setting [in/out]put_type: RAW
in the LbExec YAML should have equivalent behaviour to options.[in/out]tput_type = "MDF"
either:
-
LbExec
needs to adapted to support[in/out]tput_type: MDF
- Moore needs to be adapted to handle
[in/out]put_type: RAW
as equivalent to settingoptions.[in/out]put_type = "MDF"
At the moment I have to use a hack to have Moore write MDF when using lbexec
and Moore.production:hlt2_pp_commissioning
:
diff --git a/Hlt/Moore/python/Moore/production.py b/Hlt/Moore/python/Moore/production.py
index 9e69dffb8..cd8cca3b2 100644
--- a/Hlt/Moore/python/Moore/production.py
+++ b/Hlt/Moore/python/Moore/production.py
@@ -31,6 +31,12 @@ def hlt2(options: Options, *raw_args):
def hlt2_pp_commissioning(options: Options, *raw_args):
+ import Moore.config
+ import GaudiConf.LbExec.options
+
+ Moore.config.MDF_KEY = GaudiConf.LbExec.options.FileFormats.RAW
+
+
args = _parse_args(raw_args)
return _hlt2(options, _make_pp_commissioning_lines, args.lines_regex,
args.require_deployed_trigger_key)