Ticket 677: Add functionality for choosing to only perform qc or if qc also should... jenkins-bRopo-45
authorAnders Henja <anders@henjab.se>
Thu, 19 Jan 2017 12:27:05 +0000 (13:27 +0100)
committerAnders Henja <anders@henjab.se>
Thu, 19 Jan 2017 12:27:05 +0000 (13:27 +0100)
pyropo/ropo_quality_plugin.py
pyropo/ropo_realtime.py

index d230b90..23e2b45 100644 (file)
@@ -27,6 +27,8 @@ along with RAVE.  If not, see <http://www.gnu.org/licenses/>.
 from rave_quality_plugin import rave_quality_plugin
 from rave_quality_plugin import QUALITY_CONTROL_MODE_ANALYZE_AND_APPLY
 import _polarvolume
+import rave_pgf_logger
+logger = rave_pgf_logger.create_logger()
 
 class ropo_quality_plugin(rave_quality_plugin):
   ##
@@ -50,5 +52,5 @@ class ropo_quality_plugin(rave_quality_plugin):
       import ropo_realtime
       obj = ropo_realtime.generate(obj, reprocess_quality_flag, quality_control_mode)
     except:
-      pass
+      logger.exception("Failure during processing")
     return obj
index 42a8bb2..7133ea5 100644 (file)
@@ -205,7 +205,7 @@ def process_pvol(pvol, options, quality_control_mode=QUALITY_CONTROL_MODE_ANALYZ
 
     for s in range(pvol.getNumberOfScans()):
         scan = pvol.getScan(s)
-        scan = process_scan(scan, options)
+        scan = process_scan(scan, options, quality_control_mode)
         out.addScan(scan)
 
     return out