IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 6, 2011, 12:53:23 PM (15 years ago)
Author:
watersc1
Message:

update to correct exposure sharing behavior in LAP processing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/laptool_definerun.sql

    r31511 r31604  
    88  ) AS want
    99  LEFT JOIN
    10   (SELECT exp_id,MAX(chip_id) AS chip_id
    11      FROM lapExp
     10  (SELECT exp_id,MAX(chip_id) AS chip_id, chipRun.state
     11     FROM lapExp JOIN chipRun USING(exp_id,chip_id)
    1212     where private IS FALSE
    1313     AND chip_id IS NOT NULL
    14      AND active = TRUE ) AS have USING(exp_id)
     14     AND
     15         (
     16          -- (active = TRUE) OR
     17          (chipRun.state = 'full') OR
     18          (chipRun.state = 'new')
     19          -- when we can do updates, put that here.
     20          )
     21     GROUP BY exp_id
     22) AS have USING(exp_id)
    1523     
    1624
Note: See TracChangeset for help on using the changeset viewer.