Changeset 32940 for trunk/pstamp/scripts
- Timestamp:
- Dec 13, 2011, 11:09:35 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstampparse.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstampparse.pl
r32271 r32940 254 254 # If we encounter an error for a particular row add a job with the proper fault code. 255 255 256 my $stage = $row->{IMG_TYPE}; 257 256 258 my $rownum = $row->{ROWNUM}; 257 259 if (!validID($rownum)) { … … 275 277 } 276 278 if ($job_type eq 'get_image') { 277 unless ($req_type eq 'byid' or $req_type eq 'byexp' ) {278 print STDERR "REQ_TYPE must be 'byid' or 'byexp' for JOB_TYPE 'get_image'\n";279 unless ($req_type eq 'byid' or $req_type eq 'byexp' or ($req_type eq 'byskycell' and $stage eq 'stack')) { 280 print STDERR "REQ_TYPE must be 'byid' or 'byexp' or byskcyell for stacks for JOB_TYPE 'get_image'\n"; 279 281 insertFakeJobForRow($row, 1, $PSTAMP_INVALID_REQUEST); 280 282 return 0; … … 337 339 } 338 340 339 my $stage = $row->{IMG_TYPE};340 341 if (!check_image_type($stage)) { 341 342 print STDERR "invalid IMG_TYPE for row $rownum\n"; … … 463 464 my $numRows = scalar @$rowList; 464 465 466 if (($req_type eq 'byskycell') or ($req_type eq 'bycoord')) { 467 # avoid error from print below if $id isn't needed 468 $id = "" if !$id; 469 } 465 470 print "Collected $numRows rows beginning with row $rownum. $req_type $stage $id $tess_id $component\n"; 466 471
Note:
See TracChangeset
for help on using the changeset viewer.
