IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30735


Ignore:
Timestamp:
Feb 22, 2011, 1:50:38 PM (15 years ago)
Author:
bills
Message:

to muggle or not to muggle that is the question!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstamp_checkdependent.pl

    r30632 r30735  
    314314    my $data_state = $metadata->{data_state};
    315315
     316    # The update system currently requires that data that has been magicked be destreaked
     317    # at chip stage so it needs magic even if the customer doesn't.
     318    if ($metadata->{magicked} != 0) {
     319        $need_magic = 1;
     320    }
     321
    316322    if (($state =~ /error/) or ($state =~ /purged/) or ($state =~ /scrubbed/) or ($state eq 'drop') or
    317323         ($data_state =~ /error/) or ($data_state =~ /purged/) or ($data_state =~ /scrubbed/) or ($data_state eq 'drop')) {
     
    350356    foreach my $chip (@$data) {
    351357        $chip_id = $chip->{chip_id};
    352         if (($chip->{data_state} ne 'full') or ($need_magic and ($chip->{magicked} <= 0))) {
     358        # if chip has been magicked before require it to be magicked again
     359
     360         if (($chip->{data_state} ne 'full') or ($need_magic or ($chip->{magicked} < 0))) {
     361            if ($chip->{magicked} < 0) {
     362                print "Input has been destreaked so we must destreak before warping\n";
     363                $need_magic = 1
     364            }
    353365            $chips_ready = 0;
    354366            $chip->{fault} = $chip->{chip_fault};
     
    399411    my $skycell = $metadata;
    400412    my $skycell_id = $skycell->{skycell_id};
     413
     414    # The update system currently requires that data that has been magicked be destreaked
     415    # at chip stage so it needs magic even if the customer doesn't.
     416    if ($metadata->{magicked} != 0) {
     417        $need_magic = 1;
     418    }
    401419
    402420    if ($diff_mode == $IPP_DIFF_MODE_WARP_STACK ) {
Note: See TracChangeset for help on using the changeset viewer.