Changeset 28628
- Timestamp:
- Jul 7, 2010, 4:22:55 PM (16 years ago)
- Location:
- trunk/pstamp/scripts
- Files:
-
- 3 edited
-
pstamp_checkdependent.pl (modified) (2 diffs)
-
pstamp_job_run.pl (modified) (2 diffs)
-
pstampparse.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_checkdependent.pl
r28145 r28628 277 277 # if chipProcessedImfile.state is cleaned call check_states_chip 278 278 279 # need to code warptool -setskyfiletoupdate280 279 my $metadata = shift; 281 280 my $whole_run = shift; # if true queue entire run for update … … 287 286 my $warp_id = $metadata->{warp_id}; 288 287 my $state = $metadata->{state}; 289 if ( $state =~ /error/) {288 if (($state =~ /error/) or ($state =~ /purged/) or ($state =~ /scrubbed/) or ($state eq 'drop')) { 290 289 print STDERR "warpRun $warp_id has state $state faulting jobs\n"; 291 290 faultJobs('stop', undef, undef, $PSTAMP_GONE); -
trunk/pstamp/scripts/pstamp_job_run.pl
r27953 r28628 92 92 my_die("argument list is empty", $job_id, $PS_EXIT_DATA_ERROR) if !$argString; 93 93 94 # XXX: remove -astrom from argString and add it here95 96 94 $argString .= " -file $params->{image}"; 97 95 $argString .= " -mask $params->{mask}"; 96 my @file_list = ($params->{image}, $params->{mask}); 98 97 if ($options & $PSTAMP_SELECT_VARIANCE) { 99 98 $argString .= " -variance $params->{weight}"; 100 } 99 push @file_list, $params->{weight}; 100 } 101 102 if ($params->{astrom}) { 103 $argString .= " -astrom $params->{astrom}"; 104 push @file_list, $params->{astrom}; 105 } 106 107 check_files(@file_list); 101 108 102 109 my $command = "$ppstamp $outputBase $argString"; … … 341 348 } 342 349 350 sub check_files { 351 foreach my $f (@_) { 352 if (!$ipprc->file_exists($f)) { 353 my_die( "file $f does not exist:", $job_id, $PS_EXIT_SYS_ERROR); 354 } 355 } 356 } 357 343 358 sub my_die 344 359 { -
trunk/pstamp/scripts/pstampparse.pl
r28583 r28628 500 500 } 501 501 502 if (0) { 502 503 # add astrometry file for raw and chip images if one is available 503 504 if (($stage eq "chip") || ($stage eq "raw")) { 504 505 $args .= " -astrom $image->{astrom}" if $image->{astrom}; 505 506 } 507 } 506 508 507 509 $image->{job_args} = $args;
Note:
See TracChangeset
for help on using the changeset viewer.
