IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 17, 2010, 10:05:43 AM (15 years ago)
Author:
eugene
Message:

merge from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/ippScripts/scripts/chip_imfile.pl

    r29950 r30102  
    176176    $ipprc->delete_destreak_backup_file($outputWeight)
    177177        or &my_die("failed to delete existing destreak backup weight file", $exp_id, $chip_id, $class_id, $PS_EXIT_UNKNOWN_ERROR);
     178
     179    # don't do binned images when updating unless we are starting from scratch.
     180    $do_binned_images = 0 unless $dump_config;
    178181}
    179182if ($do_binned_images) {
     
    490493        check_output($configuration, 1) if $dump_config;
    491494        check_output($backmdl, 1) if $outputBackmdlExpect;
    492         check_output($pattern, 1) if $outputPatternExpect;
     495        # allow the pattern file to be missing if run state is update older data doesn't have one
     496        # I should parse the config dump file to calculate the 'Expect' variables
     497        check_output($pattern, 1, $run_state eq 'update') if $outputPatternExpect;
    493498        if ($do_photom) {
    494499            check_output($outputSources, 1);
     
    701706    my $file = shift;
    702707    my $replicate = shift;
     708    my $allow_missing = shift;
    703709
    704710    if (!defined $file) {
     
    706712    }
    707713
    708     &my_die("Couldn't find expected output file: $file",  $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($file);
     714    my $exists = $ipprc->file_exists($file);
     715
     716    if (!$exists) {
     717        if ($allow_missing) {
     718            carp("Couldn't find expected output_file: $file but continuing anyways\n");
     719            return 1;
     720        }
     721        &my_die("Couldn't find expected output file: $file",  $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR);
     722    }
    709723
    710724    if ($replicate and $neb) {
Note: See TracChangeset for help on using the changeset viewer.