From 51d80cf8c216c2a608c8f44db085193d20a89a8d Mon Sep 17 00:00:00 2001 From: Philipp Schmidt <philipp.schmidt@xfel.eu> Date: Fri, 9 Jun 2023 08:51:41 +0200 Subject: [PATCH] Add python shebang to update_config and minor formatting fixes --- webservice/update_config.py | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/webservice/update_config.py b/webservice/update_config.py index cef206fe5..d38eb537a 100755 --- a/webservice/update_config.py +++ b/webservice/update_config.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python3 + + import argparse import json import sys @@ -48,25 +51,25 @@ REMI_CONFIGURATIONS = { } AGIPD_DATA_MAPPING = { - "karabo-da": { - 'type': list, - 'choices': [f"AGIPD{i:02d}" for i in range(16)], - 'msg': "Choices: [AGIPD00 ... AGIPD15]. " - } + "karabo-da": { + 'type': list, + 'choices': [f"AGIPD{i:02d}" for i in range(16)], + 'msg': "Choices: [AGIPD00 ... AGIPD15]. " + } } REMI_DATA_MAPPING = { - "karabo-da": { - 'type': list, - 'choices': ['DIGI02'], - 'msg': "Choices: [DIGI02]. " - } + "karabo-da": { + "type": list, + "choices": ["DIGI02"], + "msg": "Choices: [DIGI02]. " + } } AVAILABLE_DETECTORS = { "SPB_DET_AGIPD1M-1": [AGIPD_CONFIGURATIONS, AGIPD_DATA_MAPPING], "MID_DET_AGIPD1M-1": [AGIPD_CONFIGURATIONS, AGIPD_DATA_MAPPING], - 'SQS_REMI_DLD6': [REMI_CONFIGURATIONS, REMI_DATA_MAPPING] + "SQS_REMI_DLD6": [REMI_CONFIGURATIONS, REMI_DATA_MAPPING] } -- GitLab