/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Static Public Attributes | Properties
Scraper::dq::CQJudge::Judge Class Reference

List of all members.

Public Member Functions

def __init__
def get_default
def get_summary
def get_debug

Static Public Attributes

string prepsmry_ = r""
string params_ = r""
string smry_ = r""
string default_ = r""
string debug_DqChannelStatus_ = r""
string debug_DqChannel_ = r""
string sstatus_DqChannelStatus_ = r""
string sstatus_DqChannel_ = r""
string join_DqChannel_ = r""
string join_DqChannelStatus_ = r""
string tail_ = r""
string debugtail_ = r""
string minmax_ = r""

Properties

 default = property(lambda self:self.get_default())
 prepdefault = property(lambda self:self.params_ )
 summary = property(lambda self:self.get_summary())
 debug = property(lambda self:self.get_debug())
 prepsmry = property(lambda self:self.prepsmry_ % self)
 params = property(lambda self:self.params_ % self)
 minmax = property(lambda self:self.minmax_ % self)

Detailed Description

Provider of SQL for the creation and population of Smry tables which include
column `sstatus` holding a dict string keyed by channelid holding channelstatus bit.

#. `SmryDqChannelStatus`, status bit simply copied 
#. `SmryDqChannel`, status bit derived from ingredients using SQL nested case statement 
   that duplicates the python `judge` method.

Definition at line 146 of file CQJudge.py.


Constructor & Destructor Documentation

def Scraper::dq::CQJudge::Judge::__init__ (   self,
  args,
  kwa 
)

Definition at line 156 of file CQJudge.py.

00157                                     :
00158          dict.__init__(self, *args, **kwa)
00159          self['isHvFine']  = "hvrms < @hvrmsMax and hvmean > @hvmeanMin    /* isHvFine */"
00160          self['isHvMissing'] = "hvrms=-1 and hvmean=-1    /* isHvMissing */"
00161          self['isOccFine'] = "occupancy > @occMin and occupancy < (case SITEMASK when 1 then 0.65 when 2 then 0.65 when 4 then 0.5 else -1 end)    /* isOccFine */ "
00162          self['isOccFine_v1'] = "occupancy > @occMin and occupancy - (case SITEMASK when 1 then 0.65 when 2 then 0.65 when 4 then 0.5 else -1 end) < 1e-6  /* isOccFine */ "
00163 


Member Function Documentation

def Scraper::dq::CQJudge::Judge::get_default (   self)

Definition at line 164 of file CQJudge.py.

00165                          :
00166          if self['table'] == 'DqChannel':
00167              return ( self.default_ + self.sstatus_DqChannel_ + self.join_DqChannel_ + self.tail_ ) % self
00168          elif self['table'] == 'DqChannelStatus':
00169              return ( self.default_ + self.sstatus_DqChannelStatus_ + self.join_DqChannelStatus_ + self.tail_ ) % self
00170          else:
00171              assert 0, self

def Scraper::dq::CQJudge::Judge::get_summary (   self)
:return: SQL 

Definition at line 172 of file CQJudge.py.

00173                          :
00174          """
00175          :return: SQL 
00176          """
00177          if self['table'] == 'DqChannel':
00178              return ( self.smry_ + self.sstatus_DqChannel_ + self.join_DqChannel_ + self.tail_ ) % self
00179          elif self['table'] == 'DqChannelStatus':
00180              return ( self.smry_ + self.sstatus_DqChannelStatus_ + self.join_DqChannelStatus_ + self.tail_ ) % self
00181          else:
00182              assert 0, self

def Scraper::dq::CQJudge::Judge::get_debug (   self)

Definition at line 183 of file CQJudge.py.

00184                        :
00185          if self['table'] == 'DqChannel':
00186              return ( self.debug_DqChannel_ + self.sstatus_DqChannel_ + self.join_DqChannel_ + self.debugtail_ ) % self
00187          elif self['table'] == 'DqChannelStatus':
00188              return ( self.debug_DqChannelStatus_ + self.sstatus_DqChannelStatus_ + self.join_DqChannelStatus_ + self.debugtail_ ) % self
00189          else:
00190              assert 0, self


Member Data Documentation

Definition at line 200 of file CQJudge.py.

string Scraper::dq::CQJudge::Judge::params_ = r"" [static]

Definition at line 212 of file CQJudge.py.

string Scraper::dq::CQJudge::Judge::smry_ = r"" [static]

Definition at line 218 of file CQJudge.py.

Definition at line 228 of file CQJudge.py.

Definition at line 244 of file CQJudge.py.

Definition at line 253 of file CQJudge.py.

Definition at line 270 of file CQJudge.py.

Definition at line 280 of file CQJudge.py.

Definition at line 320 of file CQJudge.py.

Definition at line 330 of file CQJudge.py.

string Scraper::dq::CQJudge::Judge::tail_ = r"" [static]

Definition at line 338 of file CQJudge.py.

Definition at line 347 of file CQJudge.py.

string Scraper::dq::CQJudge::Judge::minmax_ = r"" [static]

Definition at line 357 of file CQJudge.py.


Property Documentation

Scraper::dq::CQJudge::Judge::default = property(lambda self:self.get_default()) [static]

Definition at line 191 of file CQJudge.py.

Scraper::dq::CQJudge::Judge::prepdefault = property(lambda self:self.params_ ) [static]

Definition at line 192 of file CQJudge.py.

Scraper::dq::CQJudge::Judge::summary = property(lambda self:self.get_summary()) [static]

Definition at line 194 of file CQJudge.py.

Scraper::dq::CQJudge::Judge::debug = property(lambda self:self.get_debug()) [static]

Definition at line 195 of file CQJudge.py.

Scraper::dq::CQJudge::Judge::prepsmry = property(lambda self:self.prepsmry_ % self) [static]

Definition at line 196 of file CQJudge.py.

Scraper::dq::CQJudge::Judge::params = property(lambda self:self.params_ % self) [static]

Definition at line 197 of file CQJudge.py.

Scraper::dq::CQJudge::Judge::minmax = property(lambda self:self.minmax_ % self) [static]

Definition at line 198 of file CQJudge.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:50:03 for Scraper by doxygen 1.7.4