IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31508


Ignore:
Timestamp:
May 10, 2011, 11:04:55 AM (15 years ago)
Author:
bills
Message:

fix logic error. We can't produce uncensored stamps when updating except for chip stage.
Change test to state ne 'full' instead of state eq 'update'. state is likely to be 'cleaned'
(This fix was in the ipp-20110406 production build but never committed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstamp_job_run.pl

    r30850 r31508  
    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;
Note: See TracChangeset for help on using the changeset viewer.