IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 10, 2023, 11:57:03 AM (3 years ago)
Author:
eugene
Message:

bug fixes, making iterations work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/eam/rawfix.20230221/src/fix_chip_locations.pl

    r42445 r42446  
    4040my $Ncul2 = 0;
    4141my $Ncul3 = 0;
     42my $Nfail = 0;
    4243
    4344# load the lists of good and fail chips
     
    146147                close (OUTFILE);
    147148            }
    148             if ($goodMD5) { $Ndups++; } else { $Nfail ++; }
     149            ## if we know the MD5 is bad, add to Nfail, otherwise add to Ndups
     150            if ($haveMD5 && !$goodMD5) {
     151                $Nfail ++;
     152            } else {
     153                $Ndups++;
     154            }
    149155            next;
    150156        }
     
    162168                print OUTFILE "$newfile $datast $md5sum\n";
    163169                close (OUTFILE);
    164             }
    165             if ($goodMD5) { $Nxbck++; } else { $Nfail ++; }
     170            }
     171            ## if we know the MD5 is bad, add to Nfail, otherwise add to Nxbck:
     172            if ($haveMD5 && !$goodMD5) {
     173                $Nfail ++;
     174            } else {
     175                $Nxbck++;
     176            }
    166177            next;
    167178        }
     
    193204            }
    194205
    195             # these are done in stage 3:
    196             if ($goodMD5) {
     206            ## if we know the MD5 is bad, add to Nfail, otherwise add to NculX
     207            if ($haveMD5 && !$goodMD5) {
     208                $Nfail ++;
     209            } else {
    197210                if ($state eq "CUL1:") { $Ncul1++; next; }
    198211                if ($state eq "CUL2:") { $Ncul2++; next; }
    199212                if ($state eq "CUL3:") { $Ncul3++; next; }
    200             } else { $Nfail ++; }
     213            }
    201214        }
    202215    }
Note: See TracChangeset for help on using the changeset viewer.