IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32534 for trunk/ippScripts


Ignore:
Timestamp:
Oct 11, 2011, 1:40:52 PM (15 years ago)
Author:
watersc1
Message:

Check that the diff_id values match for exposures we've paired. If this isn't the case, do not set them as a pair. If we have not made any diffs, these will both be MAX_INT/NULL, and will therefore match each other.

This should prevent the creation of diffs that don't do anything.

File:
1 edited

Legend:

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

    r32449 r32534  
    457457            my $exp_B = ${ $exposures }[$indexing{$exp_id_B}];
    458458            print "$exp_A $exp_B $exp_id_A $exp_id_B $indexing{$exp_id_A} $indexing{$exp_id_B}\n";
    459             $exp_A->{pairwise} = 1;
    460             $exp_A->{pair_id} = $exp_B->{chip_id};
    461            
    462             $exp_B->{pairwise} = 1;
    463             $exp_B->{pair_id} = $exp_A->{chip_id};
    464            
    465             if ($verbose) {
    466                 print "LAP_DIFFS: $object: $exp_A->{exp_id} and $exp_B->{exp_id} are a pair\n";
     459            if ($exp_A->{diff_id} == $exp_B->{diff_id}) {
     460                $exp_A->{pairwise} = 1;
     461                $exp_A->{pair_id} = $exp_B->{chip_id};
     462               
     463                $exp_B->{pairwise} = 1;
     464                $exp_B->{pair_id} = $exp_A->{chip_id};
     465                if ($verbose) {
     466                    print "LAP_DIFFS: $object: $exp_A->{exp_id} and $exp_B->{exp_id} are a pair\n";
     467                }
     468            }
     469            else {
     470                $exp_A->{pairwise} = 0;
     471                $exp_B->{pairwise} = 0;
    467472            }
    468473        }
Note: See TracChangeset for help on using the changeset viewer.