IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29059


Ignore:
Timestamp:
Aug 25, 2010, 3:58:34 PM (16 years ago)
Author:
rhenders
Message:

Added burntool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/roboczar.pl

    r28926 r29059  
    1212use czartool::Nebulous;
    1313use czartool::Czarplot;
     14use czartool::Burntool;
    1415
    1516my $period = 60;
     
    2728my $pantasks = new czartool::Pantasks();
    2829my $czarplot = new czartool::Czarplot($czarDb, "%Y%m%d-%H%M%S", "png font \"/usr/share/fonts/corefonts/arial.ttf\" 8", "/tmp", $save_temps); # TODO hardcoded font path
     30my $burntool = new czartool::Burntool();
     31
    2932$czarDb->setDateFormat("%Y%m%d-%H%i%s");
    3033
    31 my @stages = ("chip", "cam", "fake", "warp", "stack", "diff", "magic", "magicDS", "dist");
     34my @stages = ("burntool", "chip", "cam", "fake", "warp", "stack", "diff", "magic", "magicDS", "dist");
    3235
    3336
     
    105108
    106109        # sort out times
    107         $begin =  strftime('%Y-%m-%d 07:00',localtime);
     110        $begin =  strftime('%Y-%m-%d 06:30',localtime);
    108111        $end = $czarDb->getNowTimestamp();
    109112
     
    233236            chomp($label);
    234237
    235             $new = $gpc1Db->countExposures($label, $stage, $newState);
    236             $full = $gpc1Db->countExposures($label, $stage, "full");
    237             $faults = $gpc1Db->countFaults($label, $stage, $newState);
    238 
     238            if ($stage eq "burntool") {
     239
     240                if ($labelServer eq "stdscience") {
     241
     242                    $burntool->getPendingAndProcessed($label, \$new, \$full);
     243                    $faults = 0;
     244                }
     245                else { $new = $full = $faults = 0;}
     246            }
     247            else {
     248
     249                $new = $gpc1Db->countExposures($label, $stage, $newState);
     250                $full = $gpc1Db->countExposures($label, $stage, "full");
     251                $faults = $gpc1Db->countFaults($label, $stage, $newState);
     252            }
    239253            #printf("%s  %s, %s, %d, %d\n", $labelServer, $label, $stage, $new, $faults);
    240254            $totalNew += $new;
Note: See TracChangeset for help on using the changeset viewer.