IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11829


Ignore:
Timestamp:
Feb 15, 2007, 10:27:09 AM (19 years ago)
Author:
Paul Price
Message:

Ensuring error codes don't go into the database if --no-update is used. Fixing statistics in detrend_resid.pl

Location:
trunk/ippScripts/scripts
Files:
15 edited

Legend:

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

    r11492 r11829  
    168168
    169169    warn($msg);
    170     if ($det_id and $iter and $class_id) {
     170    if ($det_id and $iter and $class_id and not $no_update) {
    171171        my $command = "$dettool -addnormalizedimfile -det_id $det_id -iteration $iter -class_id $class_id -code $exit_code";
    172172        $command .= " -dbname $dbname" if defined $dbname;
  • trunk/ippScripts/scripts/detrend_norm_exp.pl

    r11492 r11829  
    191191
    192192    warn($msg);
    193     if ($det_id and $iter) {
     193    if ($det_id and $iter and not $no_update) {
    194194        my $command = "$dettool -addprocessedimfile -det_id $det_id -iter $iter -code $exit_code";
    195195        $command .= " -dbname $dbname" if defined $dbname;
  • trunk/ippScripts/scripts/detrend_process_exp.pl

    r11492 r11829  
    198198
    199199    warn($msg);
    200     if ($det_id && $exp_tag) {
     200    if ($det_id and $exp_tag and not $no_update) {
    201201        my $command = "$dettool -addprocessedexp -det_id $det_id -exp_tag $exp_tag -code $exit_code";
    202202        $command .= " -dbname $dbname" if defined $dbname;
  • trunk/ippScripts/scripts/detrend_process_imfile.pl

    r11492 r11829  
    173173
    174174    warn($msg);
    175     if ($det_id and $exp_tag and $class_id) {
     175    if ($det_id and $exp_tag and $class_id and not $no_update) {
    176176        my $command = "$dettool -addprocessedimfile -det_id $det_id -exp_tag $exp_tag -class_id $class_id -code $exit_code";
    177177        $command .= " -dbname $dbname" if defined $dbname;
  • trunk/ippScripts/scripts/detrend_reject_exp.pl

    r11501 r11829  
    276276
    277277    warn($msg);
    278     if ($det_id and $iter) {
     278    if ($det_id and $iter and not $no_update) {
    279279        my $command = "$dettool -adddetrunsummary -det_id $det_id -iteration $iter -code $exit_code";
    280280        $command .= " -dbname $dbname" if defined $dbname;
  • trunk/ippScripts/scripts/detrend_reject_imfile.pl

    r11502 r11829  
    313313
    314314    warn($msg);
    315     if ($det_id and $iter and $exp_tag) {
     315    if ($det_id and $iter and $exp_tag and not $no_update) {
    316316        my $command = "$dettool -addresidexp -det_id $det_id -iteration $iter -exp_tag $exp_tag -code $exit_code";
    317317        $command .= " -dbname $dbname" if defined $dbname;
  • trunk/ippScripts/scripts/detrend_resid.pl

    r11492 r11829  
    189189    } else {
    190190        # May be undefined if there is only a single imfile
    191         $command .= ' -bg_stdev 0';
     191        $command .= ' -bg_mean_stdev 0';
    192192    }
    193193
     
    217217
    218218    warn($msg);
    219     if ($det_id and $iter and $exp_tag) {
     219    if ($det_id and $iter and $exp_tag and not $no_update) {
    220220        my $command = "$dettool -addresidimfile -det_id $det_id -iteration $iter -exp_tag $exp_tag -class_id $class_id -code $exit_code";
    221221        $command .= " -dbname $dbname" if defined $dbname;
  • trunk/ippScripts/scripts/detrend_stack.pl

    r11492 r11829  
    184184
    185185    warn($msg);
    186     if ($det_id and $iter and $class_id) {
     186    if ($det_id and $iter and $class_id and not $no_update) {
    187187        my $command = "$dettool -addstacked -det_id $det_id -iteration $iter -class_id $class_id -code $exit_code";
    188188        $command .= " -dbname $dbname" if defined $dbname;
  • trunk/ippScripts/scripts/phase0_exp.pl

    r11492 r11829  
    253253    my $exp_tag = $_[0];
    254254    my $exit_code = $_[1];
    255     if ($exp_tag) {
     255    if ($exp_tag and not $no_update) {
    256256        my $command = "$p0tool -addprocessedexp -exp_tag $exp_tag -code $exit_code";
    257257        $command .= " -dbname $dbname" if defined $dbname;
  • trunk/ippScripts/scripts/phase0_imfile.pl

    r11492 r11829  
    232232    my $class_id = $_[1];
    233233    my $exit_code = $_[2];
    234     if ($exp_tag && $class_id) {
     234    if ($exp_tag && $class_id and not $no_update) {
    235235        my $command = "$p0tool -addprocessedimfile -exp_tag $exp_tag -class_id $class_id -code $exit_code";
    236236        $command .= " -dbname $dbname" if defined $dbname;
  • trunk/ippScripts/scripts/phase2.pl

    r11574 r11829  
    160160
    161161    warn($msg);
    162     if ($exp_tag and $class_id) {
     162    if ($exp_tag and $class_id and not $no_update) {
    163163        my $command = "$p2tool -addprocessedimfile";
    164164        $command .= " -exp_tag $exp_tag";
  • trunk/ippScripts/scripts/phase3.pl

    r11575 r11829  
    252252
    253253    warn($msg);
    254     if ($exp_tag) {
     254    if ($exp_tag and not $no_update) {
    255255        my $command = "$p3tool -addprocessedexp -exp_tag $exp_tag -code $exit_code";
    256256        $command .= " -dbname $dbname" if defined $dbname;
  • trunk/ippScripts/scripts/phase4_overlap.pl

    r11806 r11829  
    123123
    124124    warn($msg);
    125     if ($p4_id) {
     125    if ($p4_id and not $no_update) {
    126126        my $command = "$p4tool -addoverlap -p4_id $p4_id -code $exit_code";
    127127        $command .= " -dbname $dbname" if defined $dbname;
  • trunk/ippScripts/scripts/phase4_warp.pl

    r11817 r11829  
    164164
    165165    warn($msg);
    166     if ($p4_id and $skycell_id) {
     166    if ($p4_id and $skycell_id and not $no_update) {
    167167        my $command = "$p4tool -warped -p4_id $p4_id -skycell_id $skycell_id -code $exit_code";
    168168        $command .= " -dbname $dbname" if defined $dbname;
  • trunk/ippScripts/scripts/phase5_subtract.pl

    r11828 r11829  
    199199
    200200    warn($msg);
    201     if ($det_id and $iter and $exp_tag) {
     201    if ($det_id and $iter and $exp_tag and not $no_update) {
    202202        my $command = "$p5tool -updaterun -p5_id $p5_id -state stop -code $exit_code";
    203203        $command .= " -dbname $dbname" if defined $dbname;
Note: See TracChangeset for help on using the changeset viewer.