From c95493b1fdb0fa453613f6b2f8e5196892705cf8 Mon Sep 17 00:00:00 2001 From: Philipp Schmidt <philipp.schmidt@xfel.eu> Date: Mon, 29 Aug 2022 16:12:48 +0200 Subject: [PATCH] Add arguments for AGIPD litframefinder to update_config script --- tests/test_update_config.py | 33 ++++++++++++++++++--------------- webservice/update_config.py | 3 +++ 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/tests/test_update_config.py b/tests/test_update_config.py index e06bc0524..7a4c79965 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 fc1f6b4b5..f6a6f9d1f 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": { -- GitLab