IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28014


Ignore:
Timestamp:
May 18, 2010, 4:15:53 PM (16 years ago)
Author:
bills
Message:

Add recipe value BURNTOOL.STATE.GOOD.UPDATE which is the minimum value for burntool state
which will be processed if run-state is 'update'. Value set to 13. This allows data with older
burntool tables to be re-processed, but still requires new runs to have current burntool
tables.

Location:
trunk
Files:
2 edited

Legend:

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

    r27718 r28014  
    7676    defined $run_state;
    7777
     78my_die ("$run_state is an invalid value for run-state", $exp_id, $chip_id, $class_id, $PS_EXIT_PROG_ERROR) unless ($run_state eq 'new' or $run_state eq 'update');
     79
    7880my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR ); # IPP configuration
    7981
     
    201203
    202204        my $burntoolStateGood;
     205        my $burntoolStateGoodUpdate;
    203206        foreach my $camEntry (@$camData) {
    204207            if ($camEntry->{name} eq "BURNTOOL.STATE.GOOD") {
    205208                $burntoolStateGood = $camEntry->{value};
    206209            }
    207         }
    208 
    209         print "burntool state vs burntoolStateGood : $burntoolState vs $burntoolStateGood\n";
     210            if ($camEntry->{name} eq "BURNTOOL.STATE.GOOD.UPDATE") {
     211                $burntoolStateGoodUpdate = $camEntry->{value};
     212            }
     213        }
     214
     215        if ($run_state eq 'new') {
     216            print "burntool state vs burntoolStateGood : $burntoolState vs $burntoolStateGood\n";
     217        } else {
     218            # if doing update go ahead if burntoolState is at least at BURNTOOL.STATE.GOOD.UPDATE
     219            print "burntool state vs burntoolStateGoodUpdate : $burntoolState vs $burntoolStateGoodUpdate\n";
     220            $useBestBurntool = 0 if (abs($burntoolState) >= $burntoolStateGoodUpdate);
     221        }
     222
    210223        if (abs($burntoolState) != $burntoolStateGood) {
    211224            if ($useBestBurntool) {
  • trunk/ippconfig/gpc1/camera.config

    r27218 r28014  
    151151
    152152BURNTOOL.STATE.GOOD     S16     14  # Value for burntool_state with the most recent bt version.
     153BURNTOOL.STATE.GOOD.UPDATE S16     13  # for upddate processing accept earlier version
Note: See TracChangeset for help on using the changeset viewer.