Index: trunk/ippScripts/scripts/detrend_resid_exp.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_resid_exp.pl	(revision 24764)
+++ trunk/ippScripts/scripts/detrend_resid_exp.pl	(revision 27180)
@@ -134,5 +134,5 @@
     foreach my $norm (@$normsMD) {
         my $class_id = $norm->{class_id};
-	my $normalization = 1.0 / $norm->{norm};
+        my $normalization = 1.0 / $norm->{norm};
 
         $norms{$class_id} = $normalization;
@@ -197,8 +197,8 @@
         # modify and save the data in this block:
         foreach my $data (@$mdComponents) {
-	    my $norm = 1.0;
-	    if ($det_mode eq "master") {
-		$norm = $norms{$class_id};
-	    }
+            my $norm = 1.0;
+            if ($det_mode eq "master") {
+                $norm = $norms{$class_id};
+            }
 
             # fields to modify by the normalization:
@@ -272,5 +272,5 @@
         &my_die("Unable to run ppImage: $error_code", $det_id, $iter, $exp_id, $error_code);
     }
-    &my_die("Unable to find expected output file: $jpeg1Name", $det_id, $iter, $exp_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($jpeg1Name);
+    &my_die("Unable to find expected output file: $jpeg1Name", $det_id, $iter, $exp_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($jpeg1Name);
 
     # Make the jpeg for binning 2
@@ -287,5 +287,5 @@
         &my_die("Unable to run ppImage: $error_code", $det_id, $iter, $exp_id, $error_code);
     }
-    &my_die("Unable to find expected output file: $jpeg2Name", $det_id, $iter, $exp_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($jpeg2Name);
+    &my_die("Unable to find expected output file: $jpeg2Name", $det_id, $iter, $exp_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($jpeg2Name);
 }
 
