Changeset 27211 for trunk/pstamp/scripts
- Timestamp:
- Mar 5, 2010, 1:47:06 PM (16 years ago)
- Location:
- trunk/pstamp/scripts
- Files:
-
- 3 edited
-
pstamp_insert_request.pl (modified) (1 diff)
-
pstamp_server_status (modified) (3 diffs)
-
pstampparse.pl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_insert_request.pl
r25318 r27211 95 95 $command .= " -dbname $dbname" if $dbname; 96 96 $command .= " -dbserver $dbserver" if $dbserver; 97 $command .= " -label WEB.UP"; 97 98 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 98 99 run(command => $command, verbose => $verbose); -
trunk/pstamp/scripts/pstamp_server_status
r27170 r27211 88 88 my ($task_state, $task, $nrun, $njobs, $ngood, $nfail, $ntime, $cmd) = split " ", $line; 89 89 # print "$task $task_state\n"; 90 my %this_task = ( name => $task, n jobs => $njobs, ngood => $ngood, nfail => $nfail, ntime => $ntime, cmd => $cmd );90 my %this_task = ( name => $task, nrun=> $nrun, njobs => $njobs, ngood => $ngood, nfail => $nfail, ntime => $ntime, cmd => $cmd ); 91 91 92 92 # change '.' in task name to '_' so we have a valid hash key … … 116 116 117 117 if ($request_run) { 118 print " $request_run->{ngood} of $request_run->{njobs} Requests parsed successfully.";118 print "<b>Parser Status:</b> $request_run->{nrun} running. $request_run->{ngood} parsed successfully. $request_run->{nfail} failed to parse."; 119 119 if ($request_fin) { 120 120 print " $request_fin->{ngood} Requests finished."; … … 125 125 print "\n"; 126 126 if ($job_run) { 127 print " $job_run->{ngood} of $job_run->{njobs} Jobs run successfully.";127 print "<b>Job Status:</b> $job_run->{nrun} running. $job_run->{ngood} completed successfully. $job_run->{nfail} failed"; 128 128 print "\n"; 129 129 } else { -
trunk/pstamp/scripts/pstampparse.pl
r27140 r27211 191 191 192 192 my $filter = $row->{REQFILT}; 193 if ($filter) { 194 if (length($filter) == 1) { 195 # allow single character filter cuts to work 196 $filter .= '%'; 197 } 198 } 193 199 my $mjd_min = $row->{MJD_MIN}; 194 200 my $mjd_max = $row->{MJD_MAX}; … … 198 204 $data_group = $row->{LABEL}; 199 205 $data_group = "null" if !defined $data_group; 206 $row->{DATA_GROUP} = $data_group; 200 207 } 201 208 … … 206 213 my $inverse = ($option_mask & $PSTAMP_SELECT_INVERSE) ? 1 : 0; 207 214 $row->{inverse} = $inverse; 215 my $unconvolved = ($option_mask & $PSTAMP_SELECT_UNCONV) ? 1 : 0; 216 $row->{unconvolved} = $unconvolved; 208 217 209 218 my $skycenter = $row->{skycenter} = ! ($row->{COORD_MASK} & $PSTAMP_CENTER_IN_PIXELS); … … 228 237 } 229 238 239 if (($req_type eq "byexp") and ($stage eq "stack")) { 240 print STDERR "byexp not implemented for stack stage. row: $rownum\n" if $verbose; 241 insertFakeJobForRow($row, 1, $PSTAMP_NOT_IMPLEMENTED); 242 $num_jobs++; 243 next; 244 } 245 230 246 231 247 # $mode list_uri is a debugging mode (it may used by the http interface) … … 273 289 # request specification. An array reference is returned. 274 290 $imageList = locate_images($ipprc, $image_db, $req_type, $stage, $id, $tess_id, $search_component, 275 $ inverse, $need_magic, $x, $y, $mjd_min, $mjd_max, $filter, $data_group, $verbose);291 $option_mask, $need_magic, $x, $y, $mjd_min, $mjd_max, $filter, $data_group, $verbose); 276 292 277 293 if (!$imageList or !@$imageList) { … … 385 401 } 386 402 387 my $base = basename($image->{path_base}); 403 my $base = basename($image->{image}); 404 if (! $base =~ /.fits$/ ) { 405 my_die("unexpected image file name found $image->{image}", $PS_EXIT_PROG_ERROR); 406 } 407 $base =~ s/.fits$//; 408 388 409 # XXX: TODO use filerule for this. I don't have a camera defined here 389 410 if (($stage eq 'chip') and ($image->{camera} eq 'GPC1')) { … … 815 836 return 0 if ($r1->{MJD_MAX} ne $r2->{MJD_MAX}); 816 837 return 0 if ($r1->{inverse} ne $r2->{inverse}); 838 return 0 if ($r1->{unconvolved} ne $r2->{unconvolved}); 817 839 818 840 if (defined($r1->{COMPONENT})) {
Note:
See TracChangeset
for help on using the changeset viewer.
