IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 21, 2011, 3:02:32 PM (15 years ago)
Author:
watersc1
Message:

Incorrect handling of exposures we need to wait to diff. They are
marked inactive and then cleaned, which isn't necessarily the correct
option.

File:
1 edited

Legend:

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

    r32428 r32430  
    233233    }
    234234    if ($chip_magicDS_id == 0) {
    235         return(&remake_this_exposure($exposure));
     235#       return(&remake_this_exposure($exposure));
    236236    }
    237237
     
    275275        &my_die("Unable to perform chiptool -setimfiletoupdate: $error_code", $exposure->{exp_id}, $data_group);
    276276    }
    277 
    278     ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    279         run(command => $magicDS_update_cmd, verbose => $verbose);
    280     unless ($success) {
    281         $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
    282         &my_die("Unable to perform magicdstool -setfiletoupdate: $error_code", $exposure->{exp_id}, $data_group);
     277    if ($chip_magicDS_id != 0) {   
     278        ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     279            run(command => $magicDS_update_cmd, verbose => $verbose);
     280        unless ($success) {
     281            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     282            &my_die("Unable to perform magicdstool -setfiletoupdate: $error_code", $exposure->{exp_id}, $data_group);
     283        }
    283284    }
    284285
     
    11831184    my $exposures = shift;
    11841185    foreach my $exposure (@$exposures) {
    1185         unless ($exposure->{private} == 1) {
     1186        if ($exposure->{private} == 1) {  # This can probably be relaxed since we can update an undestreaked warp.
     1187            $exposure->{active} = 1;
     1188        }
     1189        else {
    11861190            $exposure->{active} = 0;
    1187             update_this_exposure($exposure);
    1188         }
     1191        }
     1192        update_this_exposure($exposure);       
    11891193    }
    11901194}
Note: See TracChangeset for help on using the changeset viewer.