IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39209 for trunk


Ignore:
Timestamp:
Dec 2, 2015, 10:14:56 AM (11 years ago)
Author:
bills
Message:

When parsing chip stage job use cam_path_base if it is defined which it will be if
releasetool is used to look up the exposure.

File:
1 edited

Legend:

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

    r38370 r39209  
    746746        my $mask_base;
    747747        if ($want_astrom) {
    748             if ($selectedAstrom) {
     748            if ($out->{cam_path_base}) {
     749                # XXX Cheating here
     750                my $astromSource = 'PSASTRO.OUTPUT';
     751                $out->{astrom} = $ipprc->filename($astromSource, $out->{cam_path_base});
     752            } elsif ($selectedAstrom) {
    749753                $out->{astrom} = $selectedAstrom;
    750754                $out->{cam_path_base} = $selectedAstrom;
     
    763767                }
    764768            }
     769            # XXX: cheating here
    765770            # XXX: do this right by looking at the recipe
    766771            $mask_base = $out->{cam_path_base};
     
    14711476    if (!$astromSource) {
    14721477        if ($camera eq "GPC1") {
    1473             # CHEATER !
     1478            # XXX: CHEATER !
    14741479            $astromSource = "PSASTRO.OUTPUT";
    14751480        } else {
     
    14891494    }
    14901495
    1491     # XXX: Is this code correct if ASTROM.SOURCE ne "PSASTRO.OUTPUT"
     1496    # XXX: Is this code correct if ASTROM.SOURCE ne "PSASTRO.OUTPUT" ?
    14921497    my $astromFile = $ipprc->filename($astromSource, $camRoot);
    14931498    if (!$astromFile) {
     
    19391944    my $now = gettimeofday();
    19401945    my $dtime_tool = $now - $start_tool;
    1941     print "Time to run $program: $dtime_tool\n";
     1946    # XXX: shouldn't this be if $verbose?
     1947    print "Time to run $program: $dtime_tool\n" ; # if $verbose;
    19421948
    19431949    my $buf = join "", @$stdout_buf;
     
    19531959
    19541960    my $dtime_parse = gettimeofday() - $start_parse;
    1955     print "Time to parse results from $program: $dtime_parse\n";
     1961    # XXX: shouldn't this be if $verbose?
     1962    print "Time to parse results from $program: $dtime_parse\n" ; # if $verbose;
    19561963
    19571964    return $results;
Note: See TracChangeset for help on using the changeset viewer.