IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42703


Ignore:
Timestamp:
Jun 27, 2024, 10:23:57 AM (2 years ago)
Author:
eugene
Message:

handle some failures in burntool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/tools/eam/rawfix.20230221/src/ipp_apply_burntool_psvideo.pl

    r42531 r42703  
    144144    my $rawImfile = $file->{uri};
    145145    my $rawImfileReal = $ipprc->file_resolve($rawImfile, 0);
     146    if (not defined $rawImfileReal) {
     147        print "DEAD: $rawImfile, no valid instances found\n";
     148        next;
     149    }
    146150
    147151    my $outTable  = $file->{uri};
     
    200204        $status = vsystem ("$funpack -S $rawImfileReal > $tempPixels", $REALRUN);
    201205        if ($status) {
     206            print "FAIL: funpack fails for $rawImfile\n";
    202207            &my_die("failed on funpack",$exp_id,$class_id);
    203208        }
     
    210215        }
    211216        if ($status) {
     217            print STDERR "BURN: burntool failed for $exp_id $class_id\n";
    212218            &my_die("failed on burntool",$exp_id,$class_id);
    213219        }
     
    269275sub my_die {
    270276    my $message = shift;
     277    printf STDERR "$message\n";
    271278    if ($#_ != -1) {
    272279        my $exp_id = shift;
     
    274281        vsystem("$regtool -dbname $dbname -updateprocessedimfile -exp_id $exp_id -class_id $class_id -burntool_state -3",1);
    275282    }
    276     printf STDERR "$message\n";
     283    print STDERR "updated database with burntool state -3\n";
    277284    exit 1;
    278285}
Note: See TracChangeset for help on using the changeset viewer.