/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 | Public Attributes
Scraper::daq::daqdb_extractor::CalibRun Class Reference

List of all members.

Public Member Functions

def __init__
def Print
def Clear
def Validate

Public Attributes

 info

Detailed Description

for calib run information   **ALMOST DUPLICATES RunInfo**  

Definition at line 195 of file daqdb_extractor.py.


Constructor & Destructor Documentation

def Scraper::daq::daqdb_extractor::CalibRun::__init__ (   self)

Definition at line 197 of file daqdb_extractor.py.

00198                      :
00199      self.info = { }
 

Member Function Documentation

def Scraper::daq::daqdb_extractor::CalibRun::Print (   self)

Definition at line 200 of file daqdb_extractor.py.

00201                   :
00202       print "===>>> CalibRunInfo"
00203       for k, v in self.info.iteritems():
00204          print "   ", k, "=", v

def Scraper::daq::daqdb_extractor::CalibRun::Clear (   self)
clear self.info 

Definition at line 205 of file daqdb_extractor.py.

00206                   :
00207       """ clear self.info """
00208       self.info.clear()

def Scraper::daq::daqdb_extractor::CalibRun::Validate (   self)
prepare for DBI ...Vld table 

Definition at line 209 of file daqdb_extractor.py.

00210                      :
00211       """ prepare for DBI ...Vld table """
00212       # time
00213       duration = timedelta(seconds = self.info['duration'])
00214       #print type(self.info['timeStart']), self.info['timeStart'] - duration
00215       self.info['timeEnd'] = self.info['timeStart'] + duration
00216 
00217       """ Convert timezone, from Beijing time to UTC time"""
00218       self.info['timeStart'] = self.info['timeStart'] + timedelta(seconds=time.timezone)
00219       self.info['timeEnd'] = self.info['timeEnd'] + timedelta(seconds=time.timezone)
00220 
00221       #todo: sitemask
00222 
00223       #todo: simmask
00224 
00225       #todo: subsite
00226 
00227       #to-be-fixed
00228       self.info['versionDate'] = self.info['timeStart']
00229       self.info['insertDate'] = datetime.now() + timedelta(seconds=time.timezone)


Member Data Documentation

Definition at line 197 of file daqdb_extractor.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