IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 29, 2011, 11:26:31 AM (15 years ago)
Author:
eugene
Message:

merging changes from trunk

Location:
branches/eam_branches/ipp-20110505/pstamp/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110505/pstamp/scripts/pstamp_job_run.pl

    r30850 r31587  
    146146            # user required uncensored but since stage isn't chip we can't rebuild them
    147147            my_die("uncensored inputs not available for job $job_id", $job_id, $PSTAMP_NOT_AVAILABLE, 'stop');
    148         } elsif (($options & $PSTAMP_REQUEST_UNCENSORED) and ($params->{state} eq 'update') and ($stage ne 'chip')) {
     148        } elsif (($options & $PSTAMP_REQUEST_UNCENSORED) and ($params->{state} ne 'full') and ($stage ne 'chip')) {
    149149            # we can only restore pixels for chip stage images if the data has been updated.
    150             # XXX: this test is not quite good enough. If all components have been updated then the
    151             # state will be 'full' But this will get us going.
    152             print "Run state is update: will make stamps from destreaked $stage images.\n";
     150            # the data will have been updated if the params->{state} the state when the job was queued is not 'full' (
     151            # XXX: we should probably be looking explicitly at the job and checking for a dep_id
     152            print "Run state was $params->{state}: will make stamps from destreaked $stage images.\n";
    153153            # make stamps from uncensored images
    154154            $muggle = 0;
  • branches/eam_branches/ipp-20110505/pstamp/scripts/pstampparse.pl

    r30793 r31587  
    754754    if ( $num_jobs == 0 ) {
    755755        print STDERR "no jobs for row $rownum\n" if $verbose;
    756         insertFakeJobForRow($row, 1, $PSTAMP_NO_JOBS_QUEUED);
     756        insertFakeJobForRow($row, 1, $PSTAMP_NO_IMAGE_MATCH);
    757757        $num_jobs = 1;
     758        $row->{job_num} = 1;
    758759    }
    759760    return $num_jobs;
Note: See TracChangeset for help on using the changeset viewer.