IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30842


Ignore:
Timestamp:
Mar 9, 2011, 3:17:36 PM (15 years ago)
Author:
bills
Message:

simplify checking for existence of stats file, check configuration as well

File:
1 edited

Legend:

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

    r30841 r30842  
    256256my $outputStats;
    257257my $traceDest;
     258my $configuration = prepare_output("PPSTACK.CONFIG", $outroot, 1);
    258259if ($run_state eq 'new') {
    259260    $outputStats = prepare_output("SKYCELL.STATS", $outroot, 1);
    260261    $traceDest = prepare_output("TRACE.EXP", $outroot, 1);
     262    push @outputFiles, $configuration;
     263    push @outputFiles, $outputStats;
    261264} else {
    262265    # we need to do stats regardless because we need the quality flag
     
    265268    $traceDest = prepare_output("TRACE.EXP.UPDATE", $outroot, 1);
    266269}
    267 my $configuration = prepare_output("PPSTACK.CONFIG", $outroot, 1);
     270
    268271$temp_images_exist = 1;  # failures after this point should attempt to delete the temp images
    269272
     
    348351    if (!$quality) {
    349352        check_outputs(\@outputFiles, $replicate_outputs);
    350         if ($run_state eq 'new') {
    351             &my_die("Couldn't find expected output file: $configuration", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($configuration);
    352             if ($replicate_outputs) {
    353                 $ipprc->replicate_file($outputStats)
    354                     or &my_die("failed to replicate: $outputStats\n",  $stack_id, $PS_EXIT_SYS_ERROR);
    355             }
    356 }
    357353    }
    358354
Note: See TracChangeset for help on using the changeset viewer.