Changeset 30528
- Timestamp:
- Feb 8, 2011, 5:34:11 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstamp_job_run.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_job_run.pl
r30317 r30528 145 145 # user required uncensored but since stage isn't chip we can't rebuild them 146 146 my_die("uncensored inputs not available for job $job_id", $job_id, $PSTAMP_NOT_AVAILABLE); 147 } elsif (($options & $PSTAMP_REQUEST_UNCENSORED) and ($stage ne 'chip')) { 147 } elsif (($options & $PSTAMP_REQUEST_UNCENSORED) and ($params->{state} eq 'update') and ($stage ne 'chip')) { 148 # we can only restore pixels for chip stage images if the data has been updated. 149 # XXX: this test is not quite good enough. If all components have been updated then the 150 # state will be 'full' But this will get us going. 151 print "Run state is update: will make stamps from destreaked $stage images.\n"; 148 152 # make stamps from uncensored images 149 153 $muggle = 0; … … 153 157 @file_list = (); 154 158 $tmproot = "$outdir/$job_id"; 155 mkdir $tmproot or 156 my_die( "failed to create temporary directory $tmproot", $job_id, $PS_EXIT_UNKNOWN_ERROR); 159 if (! -e $tmproot) { 160 mkdir $tmproot or 161 my_die( "failed to create temporary directory $tmproot", $job_id, $PS_EXIT_UNKNOWN_ERROR); 162 } 157 163 my $muggle_command = "$streaksreplace -stage $stage -tmproot $tmproot"; 158 164 # find the "directory" of the input path_base … … 180 186 $base = basename($variance); 181 187 $tmpVariance = "$tmproot/$base"; 182 $newFileArgs .= " - weight$tmpVariance";188 $newFileArgs .= " -variance $tmpVariance"; 183 189 my $recVariance = "$inputdir/REC_$base"; 184 190 $muggle_command .= " -weight $variance -recweight $recVariance";
Note:
See TracChangeset
for help on using the changeset viewer.
