Index: trunk/ippScripts/scripts/detrend_resid.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_resid.pl	(revision 11837)
+++ trunk/ippScripts/scripts/detrend_resid.pl	(revision 12079)
@@ -176,6 +176,5 @@
 # Add the processed file to the database
 $outputName = $ipprc->convert_filename_relative( $outputName );
-$bin1Name = $ipprc->convert_filename_relative( $bin1Name );
-$bin2Name = $ipprc->convert_filename_relative( $bin2Name );
+$outputRoot = $ipprc->convert_filename_relative( $outputRoot );
 
 my $bg = ($stats->bg_mean() or 'NAN');
@@ -185,5 +184,5 @@
 unless ($no_update) {
     my $command = "$dettool -addresidimfile -det_id $det_id -iteration $iter -exp_tag $exp_tag " .
-	"-class_id $class_id -recip $recipe -uri $outputName -b1_uri $outputRoot"; # Command to run dettool
+	"-class_id $class_id -recip $recipe -uri $outputName -path_base $outputRoot"; # Command to run dettool
     $command .= " -bg $bg -bg_stdev $bg_stdev -bg_mean_stdev $bg_mean_stdev";
     $command .= " -dbname $dbname" if defined $dbname;
