IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34635


Ignore:
Timestamp:
Oct 31, 2012, 6:28:50 PM (14 years ago)
Author:
watersc1
Message:

Bugfix that will help keep runs from getting stuck when the diff has no overlap.

File:
1 edited

Legend:

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

    r34313 r34635  
    671671#       }
    672672        # Do quality checks here
     673        if ($verbose) {
     674            printf("TEST: %d %d %d\n",$exposure->{exp_id},$exposure->{chip_id},$exposure->{chip_component_count});
     675        }
     676        # Checks to ensure we do not divide by zero.  Mostly happens with old diffs, it seems.
     677        if ($exposure->{chip_component_count} == 0) {
     678            $exposure->{chip_component_count} = 1;
     679        }
     680        if ($exposure->{cam_component_count} == 0) {
     681            $exposure->{cam_component_count} = 1;
     682        }
     683        if ($exposure->{warp_component_count} == 0) {
     684            $exposure->{warp_component_count} = 1;
     685        }
     686        if ($exposure->{diff_component_count} == 0) {
     687            $exposure->{diff_component_count} = 1;
     688        }
     689
    673690        my $is_bad_quality = 0;
    674691        if ((defined($exposure->{chipRun_state}))&&($exposure->{chipRun_state} eq 'full')&&
Note: See TracChangeset for help on using the changeset viewer.