Index: /trunk/ippScripts/scripts/detrend_resid.pl
===================================================================
--- /trunk/ippScripts/scripts/detrend_resid.pl	(revision 11150)
+++ /trunk/ippScripts/scripts/detrend_resid.pl	(revision 11151)
@@ -94,5 +94,5 @@
 # Recipe to use in processing
 die "Unrecognised mode: $mode\n" if not defined RECIPES->{$mode};
-my $recipe = RECIPES->{$mode}->{$det_type};
+my $recipe = RECIPES->{$mode}->{lc($det_type)};
 die "Unrecognised detrend type: $det_type\n" if not defined $recipe;
 
@@ -118,5 +118,5 @@
     # Detrend to use in processing
     if (lc($mode) ne 'verify') {
-	my $detFlag = DETRENDS->{$det_type};
+	my $detFlag = DETRENDS->{lc($det_type)};
 	die "Unrecognised detrend type: $det_type\n" if not defined $detFlag;
 	$command .= "$detFlag $detrend";
Index: /trunk/ippScripts/scripts/detrend_stack.pl
===================================================================
--- /trunk/ippScripts/scripts/detrend_stack.pl	(revision 11150)
+++ /trunk/ippScripts/scripts/detrend_stack.pl	(revision 11151)
@@ -50,6 +50,6 @@
     };
 
-die "Unrecognised detrend type: $det_type\n" if not defined RECIPES()->{$det_type};
-my $recipe = RECIPES()->{$det_type}; # Recipe to use in stacking
+my $recipe = RECIPES()->{lc($det_type)}; # Recipe to use in stacking
+die "Unrecognised detrend type: $det_type\n" if not defined $recipe;
 
 # Look for programs we need
Index: /trunk/ippScripts/scripts/phase0_exp.pl
===================================================================
--- /trunk/ippScripts/scripts/phase0_exp.pl	(revision 11150)
+++ /trunk/ippScripts/scripts/phase0_exp.pl	(revision 11151)
@@ -146,4 +146,5 @@
 }
 
+if (0) {
 # XXX for a test, randomly declare a failure and return to pantasks
 my $rnd = rand(1);
@@ -151,4 +152,5 @@
     warn ("random failure");
     &my_die ($exptag, $PS_EXIT_DATA_ERROR);
+}
 }
 
Index: /trunk/ippScripts/scripts/phase0_imfile.pl
===================================================================
--- /trunk/ippScripts/scripts/phase0_imfile.pl	(revision 11150)
+++ /trunk/ippScripts/scripts/phase0_imfile.pl	(revision 11151)
@@ -132,5 +132,6 @@
         # XXX is this a programming or a config error?
     }
- 
+
+    if (0) {
     # XXX for a test, randomly declare a failure and return to pantasks
     my $rnd = rand(1);
@@ -139,4 +140,5 @@
         &my_die ($exp_tag, $class_id, $PS_EXIT_DATA_ERROR);
     }
+}
 }
 
