IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 26, 2010, 8:39:32 AM (16 years ago)
Author:
bills
Message:

Change the destreak cleanup to preserve the rows in the magicDSFile table

File:
1 edited

Legend:

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

    r27946 r29561  
    3838
    3939# Parse the command-line arguments
    40 my ($magic_ds_id, $camera, $streaks, $stage, $stage_id, $component, $uri, $path_base, $bothways, $cam_path_base, $cam_reduction, $magicked);
     40my ($magic_ds_id, $camera, $streaks, $stage, $stage_id, $component, $uri, $path_base, $bothways, $cam_path_base, $cam_reduction, $magicked, $run_state);
    4141my ($outroot, $recoveryroot, $replace, $release, $bytes, $md5sum);
    4242my ($dbname, $save_temps, $verbose, $no_update, $no_op, $logfile);
     
    4747           'stage=s'        => \$stage,      # raw, chip, warp, or diff
    4848           'stage_id=s'     => \$stage_id,   # exp_id, chip_id, warp_id, or diff_id
     49           'run-state=s'    => \$run_state, # current state of run
    4950           'component=s'    => \$component,  # the class_id or skycell_id
    5051           'path_base=s'    => \$path_base,  # path_base of the input
     
    7475    defined $path_base and
    7576    defined $magicked and
     77    defined $run_state and
    7678    defined $outroot;
    7779
     
    248250{
    249251    my $command = "$magicdstool -revertdestreakedfile -i_am_sure";
     252    $command   .= " -state $run_state";
    250253    $command   .= " -magic_ds_id $magic_ds_id";
    251254    $command   .= " -component $component";
Note: See TracChangeset for help on using the changeset viewer.