From cddb58c76643aefc7db390677fd5766cb8402651 Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Thu, 5 Oct 2017 16:30:54 +0200 Subject: [PATCH] Fix conversion tool to new config --- config_converter.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config_converter.py b/config_converter.py index b1a7fa4..b2f206a 100644 --- a/config_converter.py +++ b/config_converter.py @@ -59,11 +59,12 @@ def convert_config(old_base_dir, new_cam_base_dir, new_pipeline_base_dir, new_ba config_name = os.path.splitext(basename(old_config_file))[0] new_cam_config = OrderedDict({"name": config_name, - "prefix": prefix, + "source": prefix, "mirror_x": mirror_x, "mirror_y": mirror_y, "rotate": rotate, - "camera_calibration": new_calibration}) + "camera_calibration": new_calibration, + "source_type": "epics"}) cam_config_filename = os.path.join(new_cam_base_dir, config_name + ".json") with open(cam_config_filename, 'w') as outfile: