IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 22750


Ignore:
Timestamp:
Mar 2, 2009, 6:06:48 PM (17 years ago)
Author:
eugene
Message:

adding goto_scrubbed mode; fix error with end of chip

File:
1 edited

Legend:

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

    r21371 r22750  
    4545    defined $mode;
    4646
    47 # $mode must be one of "goto_cleaned" or "goto_purged"
    48 unless (($mode eq "goto_cleaned") || ($mode eq "goto_purged")) {
     47# $mode must be one of "goto_cleaned", "goto_scrubbed", or "goto_purged"
     48# goto_cleaned and goto_scrubbed both result in 'cleaned': scrubbed allows chips without config files to
     49# be cleaned (they cannot be recovered, but the small data is left behind)
     50unless (($mode eq "goto_cleaned") || ($mode eq "goto_scrubbed") || ($mode eq "goto_purged")) {
    4951    die "invalid cleanup mode $mode\n";   
    5052}
     
    9294
    9395        # don't clean up unless the data needed to update is available
     96        # modes goto_purged and goto_scrubbed will remove files even if the config is non-existent
    9497        if ($mode eq "goto_cleaned") {
    9598            my $config_file = $ipprc->filename("PPIMAGE.CONFIG", $path_base, $class_id);
     
    133136            if ($mode eq "goto_purged") {
    134137                $command .= " -topurgedimfile";
    135             } else {
     138            } elsif ($mode eq "goto_scrubbed") {
     139                $command .= " -tocleanedimfile_from_scrubbed";
     140            } else {
    136141                $command .= " -tocleanedimfile";
    137142            }
     
    145150            }
    146151        } else {
     152            # if an error happens for one chip, the chipRun will stay in goto_*, but the chips will stop be run
    147153            my $command = "$chiptool -updateprocessedimfile -chip_id $stage_id -class_id $class_id -code 1";
    148154            $command .= " -dbname $dbname" if defined $dbname;
     
    156162        }
    157163    }
    158 
    159 } elsif ($stage eq "camera") {
     164    exit 0;
     165}
     166
     167if ($stage eq "camera") {
    160168    die "--stage_id required for stage camera\n" if !$stage_id;
    161169    # this stage uses 'camtool'
     
    236244    }
    237245    exit 0;
    238 } elsif ($stage eq "warp") {
     246}
     247
     248if ($stage eq "warp") {
    239249    die "--stage_id required for stage warp\n" if !$stage_id;
    240250    # this stage uses 'warptool'
Note: See TracChangeset for help on using the changeset viewer.