Fix conversion tool to new config
This commit is contained in:
+3
-2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user