Index: trunk/ippScripts/scripts/detrend_process_exp.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_process_exp.pl	(revision 9133)
+++ trunk/ippScripts/scripts/detrend_process_exp.pl	(revision 9145)
@@ -27,6 +27,5 @@
     -exitval => 3,
 ) unless defined $det_id
-     and defined $exp_tag
-     and defined $det_type;
+    and defined $exp_tag;
 
 use constant RECIPE1 => 'PPIMAGE_J1'; # Recipe to use for ppImage to make JPEGs
@@ -86,5 +85,5 @@
 
 # Generate the file list, and get the statistics
-my $outputRoot = $exp_tag . '.detproc.' . $det_id . '.' . $iter; # Root output name
+my $outputRoot = $exp_tag . '.detproc.' . $det_id; # Root output name
 my $list1Name = $outputRoot . '.b1.list'; # Name for the input file list for binning 1
 my $list2Name = $outputRoot . '.b2.list'; # Name for the input file list for binning 2
@@ -124,5 +123,5 @@
 # Add the result into the database
 unless ($no_update) {
-    my $command = "$dettool -addprocessedexp -det_id $det_id -iteration $iter -exp_tag $exp_tag " .
+    my $command = "$dettool -addprocessedexp -det_id $det_id -exp_tag $exp_tag " .
 	"-recip " . RECIPE1() . "," . RECIPE2() . " -b1_uri $jpeg1Name -b2_uri $jpeg2Name " .
 	"-bg $bg -bg_stdev $bg_stdev -bg_mean_stdev $bg_mean_stdev"; # Command to run
