Index: trunk/ippScripts/scripts/nightly_science.pl
===================================================================
--- trunk/ippScripts/scripts/nightly_science.pl	(revision 41463)
+++ trunk/ippScripts/scripts/nightly_science.pl	(revision 41893)
@@ -1517,6 +1517,7 @@
 	    my $this_exp_id  = ${ $this_warp }[0];
 	    my $this_quality = ${ $this_warp }[5];
-	    if ($this_quality != 0) {
-		print STDERR "diff_queue: excluding $this_exp_id for $this_object due to non-zero cam.quality $this_quality\n";
+	    my $this_state   = ${ $this_warp }[4];
+	    if (($this_quality != 0) || ($this_state eq 'fail') ) {
+		print STDERR "diff_queue: excluding $this_exp_id for $this_object due to non-zero cam.quality $this_quality or state $this_state\n";
 	    }
 	    else {
@@ -1706,6 +1707,7 @@
     	        my $this_exp_id  = ${ $this_warp }[0];
 	        my $this_quality = ${ $this_warp }[5];
-	        if ($this_quality != 0) {
-		    print STDERR "desp_diff_singles: excluding $this_exp_id for $this_object due to non-zero cam.quality $this_quality\n";
+	        my $this_state   = ${ $this_warp }[4];
+	        if (($this_quality != 0) || ($this_state eq 'fail') ) {
+		    print STDERR "desp_diff_singles: excluding $this_exp_id for $this_object due to non-zero cam.quality $this_quality or state $this_state\n";
 	        }
 	        else {
@@ -1922,6 +1924,7 @@
 	        my $this_exp_id  = ${ $this_warp }[0];
 	        my $this_quality = ${ $this_warp }[5];
-	        if ($this_quality != 0) { 
-		    print STDERR "desp_diff_queue: excluding $this_exp_id for $this_object due to non-zero cam.quality $this_quality\n";
+	        my $this_state   = ${ $this_warp }[4];
+	        if (($this_quality != 0) || ($this_state eq 'fail') ) {
+		    print STDERR "desp_diff_queue: excluding $this_exp_id for $this_object due to non-zero cam.quality $this_quality or state $this_state\n";
 	        }
 	        else {
