From c23b42c037649a06b5f270bc659cf745e32c073c Mon Sep 17 00:00:00 2001
From: Wouter Klijn <klijn@astron.nl>
Date: Thu, 6 Dec 2012 11:07:34 +0000
Subject: [PATCH] Task #3878: Add correct parsing of key for parmexportcal to
 the colibrator pipeline

---
 CEP/Pipeline/recipes/sip/bin/msss_calibrator_pipeline.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/CEP/Pipeline/recipes/sip/bin/msss_calibrator_pipeline.py b/CEP/Pipeline/recipes/sip/bin/msss_calibrator_pipeline.py
index b2b15b29f16..1a30f32d197 100755
--- a/CEP/Pipeline/recipes/sip/bin/msss_calibrator_pipeline.py
+++ b/CEP/Pipeline/recipes/sip/bin/msss_calibrator_pipeline.py
@@ -289,8 +289,9 @@ class msss_calibrator_pipeline(control):
         #    Swapping outliers in the gains with the median 
         # Export the calibration solutions using gainoutliercorrection and store
         # the results in the files specified in the instrument mapfile.
-        export_instrument_model = eval(py_parset.getString(
-            'Calibration.export_instrument_model'))
+        export_instrument_model = py_parset.getBool(
+            'Calibration.exportCalibrationParameters', False)
+
         with duration(self, "gainoutliercorrection"):
             self.run_task("gainoutliercorrection",
                       (parmdb_mapfile, instrument_mapfile),
-- 
GitLab