IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 21, 2023, 10:36:27 AM (3 years ago)
Author:
eugene
Message:

some improvements (make sure to examine md5s for chip-specific inst files, randomly draw the new nights)

File:
1 edited

Legend:

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

    r42451 r42452  
    196196        if ($Nvalues != 3) { print "ERROR: invalid response?\n"; next; }
    197197       
     198        # data_state and possibly md5sum can be NULL, need to handle specially
     199        my $dstate = $values[1]; if (not defined $dstate) { $dstate = "NULL"; }
     200        my $md5sum = $values[2]; if (not defined $md5sum) { $md5sum = "XXXX"; }
     201       
    198202        push (@nebarray, $values[0]);
    199         push (@ds_array, $values[1]);
    200         push (@md_array, $values[2]);
    201         if ($DEBUG > 4) { print "$values[0]\n $values[1]\n $values[2]\n"; }
     203        push (@md_array, $md5sum);
     204        push (@ds_array, $dstate);
     205
     206        if ($DEBUG > 5) { print "V0: $values[0]\n"; print "V1: $values[1]\n"; print "V2: $values[2]\n"; }
     207        if ($DEBUG > 4) { print "PRINT: $values[0]\n $dstate\n $md5sum\n"; }
    202208    }
    203209
Note: See TracChangeset for help on using the changeset viewer.