Changeset 30118 for branches/czw_branch/20101203/pstamp/scripts
- Timestamp:
- Dec 20, 2010, 2:30:45 PM (16 years ago)
- Location:
- branches/czw_branch/20101203
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
pstamp/scripts/pstamp_job_run.pl (modified) (1 diff)
-
pstamp/scripts/pstampparse.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20101203
- Property svn:mergeinfo changed
-
branches/czw_branch/20101203/pstamp/scripts/pstamp_job_run.pl
r29885 r30118 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/czw_branch/20101203/pstamp/scripts/pstampparse.pl
r29578 r30118 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);
Note:
See TracChangeset
for help on using the changeset viewer.
