IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27062


Ignore:
Timestamp:
Feb 24, 2010, 2:41:51 PM (16 years ago)
Author:
Paul Price
Message:

Check for configuration dump file.

Location:
trunk/ippScripts/scripts
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/camera_exp.pl

    r27050 r27062  
    294294        if ($do_stats) {
    295295            my $fpaStatsReal = $ipprc->file_resolve($fpaStats);
    296             &my_die("Couldn't find expected output file: $fpaStats", $cam_id, $PS_EXIT_SYS_ERROR) unless -f $fpaStatsReal;
     296            &my_die("Couldn't find expected output file: $fpaStats", $cam_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists( $fpaStatsReal );
    297297
    298298            # parse stats from metadata
     
    317317            foreach my $outMask (@outMasks) {
    318318                &my_die("Unable to find expected output file: $outMask", $cam_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($outMask);
     319            }
     320
     321            if ($run_state eq 'new') {
     322                &my_die("Couldn't find expected output file: $configuration", $cam_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($configuration);
    319323            }
    320324        }
  • trunk/ippScripts/scripts/chip_imfile.pl

    r26901 r27062  
    399399        &my_die("Couldn't find expected output file: $outputBin1\n",   $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputBin1);
    400400        &my_die("Couldn't find expected output file: $outputBin2\n",   $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputBin2);
     401        if ($run_state eq 'new') {
     402            &my_die("Couldn't find expected output file: $configuration", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($configuration);
     403        }
    401404    }
    402405
  • trunk/ippScripts/scripts/diff_skycell.pl

    r26939 r27062  
    107107    # Both are zero, so stack stack diff;
    108108    unless ($use_convolved) {
    109         $use_convolved = 0;
     109        $use_convolved = 0;
    110110    }
    111111}
     
    120120        $templatePath = $file->{path_base};
    121121        if ($file->{warp_id} == 0) {
    122             if ($use_convolved) {
    123                 $template = "PPSTACK.OUTPUT";
    124                 $templateMask = "PPSTACK.OUTPUT.MASK";
    125                 $templateVariance = "PPSTACK.OUTPUT.VARIANCE";
    126             }
    127             else {
    128                 $template     = "PPSTACK.UNCONV";
    129                 $templateMask = "PPSTACK.UNCONV.MASK";
    130                 $templateVariance = "PPSTACK.UNCONV.VARIANCE";
    131             }
     122            if ($use_convolved) {
     123                $template = "PPSTACK.OUTPUT";
     124                $templateMask = "PPSTACK.OUTPUT.MASK";
     125                $templateVariance = "PPSTACK.OUTPUT.VARIANCE";
     126            }
     127            else {
     128                $template     = "PPSTACK.UNCONV";
     129                $templateMask = "PPSTACK.UNCONV.MASK";
     130                $templateVariance = "PPSTACK.UNCONV.VARIANCE";
     131            }
    132132            $templateSources = "PSPHOT.OUT.CMF.MEF";  ## this must be consistent with the value in stack_skycell.pl:161
    133133            # template is a stack so it doesn't need to be magicked
     
    135135            ## use an explicit stack name for psphot output objects
    136136        } else {
    137             $template     = "PSWARP.OUTPUT";
     137            $template     = "PSWARP.OUTPUT";
    138138            $templateMask = "PSWARP.OUTPUT.MASK";
    139139            $templateVariance = "PSWARP.OUTPUT.VARIANCE";
     
    146146        $inputMagic = $file->{magicked};    # if input is a stack the output can't be "magicked"
    147147        if ($file->{warp_id} == 0) {
    148             if ($use_convolved) {
    149                 $input = "PPSTACK.OUTPUT";
    150                 $inputMask = "PPSTACK.OUTPUT.MASK";
    151                 $inputVariance = "PPSTACK.OUTPUT.VARIANCE";
    152             }
    153             else {
    154                 $input     = "PPSTACK.UNCONV";
    155                 $inputMask = "PPSTACK.UNCONV.MASK";
    156                 $inputVariance = "PPSTACK.UNCONV.VARIANCE";
    157             }
     148            if ($use_convolved) {
     149                $input = "PPSTACK.OUTPUT";
     150                $inputMask = "PPSTACK.OUTPUT.MASK";
     151                $inputVariance = "PPSTACK.OUTPUT.VARIANCE";
     152            }
     153            else {
     154                $input     = "PPSTACK.UNCONV";
     155                $inputMask = "PPSTACK.UNCONV.MASK";
     156                $inputVariance = "PPSTACK.UNCONV.VARIANCE";
     157            }
    158158            $inputSources = "PSPHOT.OUT.CMF.MEF";  ## this must be consistent with the value in stack_skycell.pl:161
    159159        } else {
    160             $input     = "PSWARP.OUTPUT";
     160            $input     = "PSWARP.OUTPUT";
    161161            $inputMask = "PSWARP.OUTPUT.MASK";
    162162            $inputVariance = "PSWARP.OUTPUT.VARIANCE";
     
    312312
    313313        my $outputStatsReal = $ipprc->file_resolve($outputStats);
    314         &my_die("Couldn't find expected output file: $outputStats", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless -f $outputStatsReal;
     314        &my_die("Couldn't find expected output file: $outputStats", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputStatsReal);
    315315
    316316        # measure chip stats
     
    341341                &my_die("Couldn't find expected output file: $inverseVariance", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inverseVariance);
    342342                &my_die("Couldn't find expected output file: $inverseSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inverseSources);
     343                if ($run_state eq 'new') {
     344                    &my_die("Couldn't find expected output file: $configuration", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($configuration);
     345                }
    343346            }
    344347        }
  • trunk/ippScripts/scripts/stack_skycell.pl

    r26600 r27062  
    283283        &my_die("Couldn't find expected output file: $outputMask", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputMask);
    284284        &my_die("Couldn't find expected output file: $outputWeight", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputWeight);
    285         if ($photometry) {
    286             &my_die("Couldn't find expected output file: $outputSources", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputSources);
    287         }
     285        if ($photometry) {
     286            &my_die("Couldn't find expected output file: $outputSources", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputSources);
     287        }
     288        if ($run_state eq 'new') {
     289            &my_die("Couldn't find expected output file: $configuration", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($configuration);
     290        }
    288291#       &my_die("Couldn't find expected output file: $bin1Name",    $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin1Name);
    289292#       &my_die("Couldn't find expected output file: $bin2Name",    $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin2Name);
  • trunk/ippScripts/scripts/warp_skycell.pl

    r27051 r27062  
    287287            &my_die("Couldn't find expected output file: $outputSources", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputSources);
    288288            &my_die("Couldn't find expected output file: $outputPSF", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) if metadataLookupBool($recipe, 'PSF') and not $ipprc->file_exists($outputPSF);
     289            if ($run_state eq 'new') {
     290                &my_die("Couldn't find expected output file: $configuration", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($configuration);
     291            }
    289292        }
    290293
Note: See TracChangeset for help on using the changeset viewer.