Index: trunk/ippScripts/scripts/psphot_fullforce_warp.pl
===================================================================
--- trunk/ippScripts/scripts/psphot_fullforce_warp.pl	(revision 37915)
+++ trunk/ippScripts/scripts/psphot_fullforce_warp.pl	(revision 37942)
@@ -124,8 +124,5 @@
 }
 
-# XXX: need to figure out whether this works or not
-# We probably want to create a specific recipe that looks at the results
-my $recipe_ppstats = 'WARPSTATS';
-my $doStats = 0;
+my $doStats = 1;
 
 print "reduction: $reduction\n";
@@ -166,4 +163,5 @@
 
 my $cmdflags = "";
+my $quality = 0;
 
 # Perform psphotFullForce
@@ -182,5 +180,4 @@
     if ($doStats) {
         $command .= " -stats $outputStats";
-        $command .= " -recipe PPSTATS $recipe_ppstats";
     }
     $command .= " -F PSPHOT.OUTPUT PSPHOT.OUT.CMF.MEF";
@@ -198,10 +195,9 @@
         }
 
-        # Stats: TODO
         if ($doStats) {
             check_output($outputStats, 1);
             my $outputStatsReal = $ipprc->file_resolve($outputStats);
 
-            # measure chip stats
+            # analyze the stats file
             $command = "$ppStatsFromMetadata $outputStatsReal - WARP_SKYCELL";
             ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
@@ -216,12 +212,13 @@
             chomp $cmdflags;
         }
-        my ($quality) = $cmdflags =~ /-quality (\d+)/; # Quality flag
-
-        if (!$quality) {
-            check_output($outputSources, 1);
-        }
+        ($quality) = $cmdflags =~ /-quality (\d+)/; # Quality flag
+
     } else {
         print "Not executing: $command\n";
     }
+}
+
+if (!$quality) {
+    check_output($outputSources, 1);
 }
 
