Skip to content
Snippets Groups Projects
Commit 51d80cf8 authored by Philipp Schmidt's avatar Philipp Schmidt
Browse files

Add python shebang to update_config and minor formatting fixes

parent 2b580622
No related branches found
No related tags found
1 merge request!863[TIMEPIX] Add select parameters to update_config
#!/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]
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment