IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26150


Ignore:
Timestamp:
Nov 15, 2009, 8:46:06 AM (16 years ago)
Author:
bills
Message:

make sure that camRun selected for astrometry is in full state

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm

    r26143 r26150  
    580580    }
    581581
    582     # If there are multiple cam runs for this exposure, take the last one
    583     # assuming that it has the best astrometry
    584     my $camdata = pop @$camruns;
     582    # If there are multiple cam runs for this exposure, take the last completed one
     583    # on the assumption that it has the best astrometry.
     584    my $camdata;
     585    while ($camdata = pop @$camruns) {
     586        last if $camdata->{state} eq "full";
     587    }
    585588    if (!$camdata) {
    586589        # no cam runs for this exposure id therefore best astrometry is whatever is in the header
Note: See TracChangeset for help on using the changeset viewer.