IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40762


Ignore:
Timestamp:
May 30, 2019, 8:43:43 AM (7 years ago)
Author:
eugene
Message:

merge changes from trunk (night_report tweaks)

Location:
tags/ipp-ps2-20190404
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-ps2-20190404

  • tags/ipp-ps2-20190404/ippScripts/scripts/night_report.pl

    r40678 r40762  
    768768# count the number of chunks, and their status:
    769769if ($verbose or $chunks) {
    770     print "Current status of SS chunks:\n";
     770    print "Current status of SS and Euclid chunks:\n";
    771771
    772772    #This is a long query, but it efficiently gathers all the necessary information
     
    775775    $query .= "     SELECT dateobs,comment,substr(comment, 1, position(' ' in comment)) AS chunk,count(*) AS Nquad_firstvisit";
    776776    $query .= "     FROM rawExp";
    777     $query .= "     WHERE dateobs LIKE '$date%' AND obs_mode LIKE '%SS%'";
    778     $query .= "     AND obs_mode LIKE '%SS%' AND obs_mode NOT LIKE 'ENGINEERING'";
     777    $query .= "     WHERE dateobs LIKE '$date%'";
     778    $query .= "     AND (obs_mode LIKE '%SS%' OR obs_mode LIKE '%BRIGHT%') AND obs_mode NOT LIKE 'ENGINEERING'";
    779779    $query .= "     AND comment LIKE '%visit 1%'";
    780780    $query .= "     GROUP BY chunk";
     
    785785    $query .= "       (SELECT substr(comment, 1, position(' ' in comment)) AS chunk,count(*) AS Nvisits";
    786786    $query .= "         FROM rawExp";
    787     $query .= "         WHERE obs_mode LIKE '%' AND dateobs LIKE '$date%' AND obs_mode like '%SS%'";
     787    $query .= "         WHERE dateobs LIKE '$date%' AND (obs_mode LIKE '%SS%' OR obs_mode LIKE '%BRIGHT%')";
    788788    $query .= "         AND obs_mode NOT LIKE 'ENGINEERING' AND comment LIKE '%visit%'";
    789789    $query .= "         GROUP BY object, filter, chunk";
     
    798798    $query .= "       (SELECT exp_name,comment,dateobs";
    799799    $query .= "         FROM rawExp ";
    800     $query .= "         WHERE dateobs LIKE '$date%' AND obs_mode LIKE '%SS%' AND obs_mode NOT LIKE 'ENGINEERING'";
     800    $query .= "         WHERE dateobs LIKE '$date%' AND (obs_mode LIKE '%SS%' OR obs_mode LIKE '%BRIGHT%') AND obs_mode NOT LIKE 'ENGINEERING'";
    801801    $query .= "       ) AS expall ";
    802802    $query .= "     LEFT JOIN";
     
    806806    $query .= "           diffRun JOIN diffInputSkyfile USING (diff_id) JOIN publishRun ON (diff_id = stage_id) JOIN warpRun ON (warp1=warp_id)";
    807807    $query .= "           JOIN fakeRun USING (fake_id) JOIN camRun USING (cam_id) JOIN camProcessedExp USING (cam_id) JOIN chipRun USING (chip_id) JOIN rawExp USING (exp_id)";
    808     $query .= "           WHERE rawExp.dateobs LIKE '$date%' AND diffRun.reduction LIKE 'SWEETSPOT'";
     808    $query .= "           WHERE rawExp.dateobs LIKE '$date%' AND (obs_mode LIKE '%SS%' OR obs_mode LIKE '%BRIGHT%')";
    809809    $query .= "           AND stack2 IS NULL AND diffRun.diff_id=stage_id";
    810810    $query .= "         )  ";
     
    813813    $query .= "           diffRun JOIN diffInputSkyfile USING (diff_id) JOIN publishRun ON (diff_id = stage_id) JOIN warpRun ON (warp2=warp_id)";
    814814    $query .= "           JOIN fakeRun USING (fake_id) JOIN camRun USING (cam_id) JOIN camProcessedExp USING (cam_id) JOIN chipRun USING (chip_id) JOIN rawExp USING (exp_id)";
    815     $query .= "           WHERE rawExp.dateobs LIKE '$date%' AND diffRun.reduction LIKE 'SWEETSPOT'";
     815    $query .= "           WHERE rawExp.dateobs LIKE '$date%' AND (obs_mode LIKE '%SS%' OR obs_mode LIKE '%BRIGHT%')";
    816816    $query .= "           AND stack2 IS NULL AND diffRun.diff_id=stage_id";
    817817    $query .= "         )";
  • tags/ipp-ps2-20190404/tools/fixburntool

    r36552 r40762  
    4848        run(command => $command, verbose => $verbose);
    4949    unless ($success) {
     50        print "error_code: $error_code\n";
    5051        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
    5152        carp("Unable to perform $command: $error_code");
Note: See TracChangeset for help on using the changeset viewer.