Changeset 30103 for branches/eam_branches/ipp-20101205/pstamp
- Timestamp:
- Dec 17, 2010, 10:06:13 AM (16 years ago)
- Location:
- branches/eam_branches/ipp-20101205/pstamp
- Files:
-
- 3 edited
-
scripts/pstamp_job_run.pl (modified) (1 diff)
-
scripts/pstampparse.pl (modified) (2 diffs)
-
src/ppstampMakeStamp.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/pstamp/scripts/pstamp_job_run.pl
r29885 r30103 277 277 # silently skip them if they don't exist. Perhaps this should be 278 278 # detected in pstampparse so that the user can be notified with 279 # a message in parse_error.txt ("warp do not have a background model") 280 my $cmf_file = $params->{cmf} if ($options & $PSTAMP_SELECT_CMF); 279 # a message in parse_error.txt ("warp does not have a background model") 281 280 my $psf_file = $params->{psf} if ($options & $PSTAMP_SELECT_PSF); 282 281 my $backmdl_file = $params->{backmdl} if ($options & $PSTAMP_SELECT_BACKMDL); 283 282 my $pattern_file = $params->{pattern} if ($options & $PSTAMP_SELECT_BACKMDL); 283 my $cmf_file; 284 if ($stage ne 'chip') { 285 # we don't ship chip stage cmf files because they may not be censored 286 $cmf_file = $params->{cmf} if ($options & $PSTAMP_SELECT_CMF); 287 } 284 288 285 289 my $outdir = dirname($output_base); -
branches/eam_branches/ipp-20101205/pstamp/scripts/pstampparse.pl
r29578 r30103 126 126 } 127 127 128 # Adjust the label for requests coming in over the web interaface 129 130 my $label_changed = 0; 131 if ($label and $label eq "WEB.UP") { 132 my $lcname = lc($req_name); 133 if ($lcname =~ /pitt/) { 134 $label = "PITT"; 135 $label_changed = 1; 136 } elsif ($lcname =~ /cfa/) { 137 $label = "CFA"; 138 $label_changed = 1; 139 } elsif ($lcname =~ /durham/) { 140 $label = "DURHAM"; 141 $label_changed = 1; 142 } elsif ($lcname =~ /qub/) { 143 $label = "QUB"; 144 $label_changed = 1; 145 } 146 print "Setting label for $req_name to $label\n" if $label_changed; 147 } 148 149 128 150 if ($req_id and !$no_update) { 129 151 # update the database with the request name. This will be used as the … … 131 153 my $command = "$pstamptool -updatereq -req_id $req_id -set_name $req_name"; 132 154 $command .= " -set_outProduct $product"; 155 $command .= " -set_label $label" if $label_changed; 133 156 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 134 157 run(command => $command, verbose => $verbose); -
branches/eam_branches/ipp-20101205/pstamp/src/ppstampMakeStamp.c
r29885 r30103 320 320 } 321 321 if (readout->mask) { 322 outReadout->mask = extractStamp(readout->mask, extractRegion, 0); 322 psImageMaskType maskInitValue = pmConfigMaskGet("BLANK", config); 323 outReadout->mask = extractStamp(readout->mask, extractRegion, maskInitValue); 323 324 if (!outReadout->mask) { 324 325 psError(PS_ERR_UNKNOWN, false, "failed to create postage stamp mask image\n");
Note:
See TracChangeset
for help on using the changeset viewer.
