diff --git a/tests/test_update_config.py b/tests/test_update_config.py index e06bc052448d35800380f3a80f9280fe23ba8b4a..7a4c79965051b5a31847ca9c02875fd08eaf1252 100644 --- a/tests/test_update_config.py +++ b/tests/test_update_config.py @@ -84,27 +84,30 @@ def test_main(capsys): EXPECTED_CONF = [ { - 'force-hg-if-below': {'typ': int}, - 'rel-gain': {'typ': bool}, - 'xray-gain': {'typ': bool}, - 'blc-noise': {'typ': bool}, - 'blc-set-min': {'typ': bool}, - 'dont-zero-nans': {'typ': bool}, - 'dont-zero-orange': {'typ': bool}, - 'max-pulses': {'typ': list, + 'force-hg-if-below': {'type': int}, + 'rel-gain': {'type': bool}, + 'xray-gain': {'type': bool}, + 'blc-noise': {'type': bool}, + 'blc-set-min': {'type': bool}, + 'dont-zero-nans': {'type': bool}, + 'dont-zero-orange': {'type': bool}, + 'max-pulses': {'type': list, 'msg': 'Range list of maximum pulse indices ' '(--max-pulses start end step). ' '3 max input elements. '}, - 'no-rel-gain': {'typ': bool}, - 'no-xray-gain': {'typ': bool}, - 'no-blc-noise': {'typ': bool}, - 'no-blc-set-min': {'typ': bool}, - 'no-dont-zero-nans': {'typ': bool}, - 'no-dont-zero-orange': {'typ': bool} + 'use-litframe-finder': {'type': str}, + 'litframe-device-id': {'type': str}, + 'energy-threshold': {'type': int}, + 'no-rel-gain': {'type': bool}, + 'no-xray-gain': {'type': bool}, + 'no-blc-noise': {'type': bool}, + 'no-blc-set-min': {'type': bool}, + 'no-dont-zero-nans': {'type': bool}, + 'no-dont-zero-orange': {'type': bool} }, { 'karabo-da': { - 'typ': list, + 'type': list, 'choices': [ 'AGIPD00', 'AGIPD01', 'AGIPD02', 'AGIPD03', 'AGIPD04', 'AGIPD05', 'AGIPD06', 'AGIPD07', diff --git a/webservice/update_config.py b/webservice/update_config.py index fc1f6b4b5ff250b4a0c54163db69f92a3f88f53f..f6a6f9d1f9bb7c7474724d955fd359f3f4fa2d5f 100755 --- a/webservice/update_config.py +++ b/webservice/update_config.py @@ -20,6 +20,9 @@ AGIPD_CONFIGURATIONS = { 'msg': "Range list of maximum pulse indices " "(--max-pulses start end step). " "3 max input elements. "}, + 'use-litframe-finder': {'type': str}, + 'litframe-device-id': {'type': str}, + 'energy-threshold': {'type': int} }, "dark": {