/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::fileinfo::OffFiles Class Reference

List of all members.

Public Member Functions

def __init__
def last
def offnames

Public Attributes

 target
 cfg
 kdrdfi
 last

Detailed Description

Definition at line 69 of file fileinfo.py.


Constructor & Destructor Documentation

def Scraper::daq::fileinfo::OffFiles::__init__ (   self,
  target,
  cfg 
)

Definition at line 70 of file fileinfo.py.

00071                                      :
00072         self.target = target 
00073         self.cfg = cfg
00074         self.kdrdfi = self.target.dbikls_("DaqRawDataFileInfo")
00075 
00076         def kdrdfi__repr__(self):
00077             return "%s %s %s %s %s %s" % ( self.__class__.__name__, self.runNo, self.fileName, self.TIMESTART, self.TIMEEND, self.SEQNO )
00078         self.kdrdfi.__repr__ = kdrdfi__repr__ 
00079         self.kdrdfi.localstart = property(lambda self:self.TIMESTART - timedelta(seconds=time.timezone))   ## time.timezone is  -28800


Member Function Documentation

Accesses highest SEQNO entry from offline DBI pair `DaqRawDataFileInfo` and updates self with values

#    self.update(runNo=last.runNo,fileNo=last.fileNo,fileName=last.fileName,timeStart=last.TIMESTART) 

Definition at line 80 of file fileinfo.py.

00081                   :
00082         """
00083         Accesses highest SEQNO entry from offline DBI pair `DaqRawDataFileInfo` and updates self with values
00084 
00085         #    self.update(runNo=last.runNo,fileNo=last.fileNo,fileName=last.fileName,timeStart=last.TIMESTART) 
00086         """
00087         off   = self.target()
00088         kdrdfi = self.kdrdfi 
00089 
00090         last = off.query(kdrdfi).order_by(kdrdfi.SEQNO.desc()).first()
00091         self.last = last 
00092         return last 

def Scraper::daq::fileinfo::OffFiles::offnames (   self,
  runs = [] 
)
:param runs: list of runs

offline filenames corresponding to those runs

Definition at line 93 of file fileinfo.py.

00094                                :
00095         """
00096         :param runs: list of runs
00097 
00098         offline filenames corresponding to those runs
00099         """
00100         off = self.target()
00101         kdrdfi = self.kdrdfi
00102         if len(runs) == 0:
00103             offnames = []
00104         else: 
00105             offnames = [fileName for fileName, in off.query(kdrdfi.fileName).filter(kdrdfi.runNo.in_(runs)).all()]      
00106         return offnames
00107 
00108 


Member Data Documentation

Definition at line 70 of file fileinfo.py.

Definition at line 70 of file fileinfo.py.

Definition at line 70 of file fileinfo.py.

Definition at line 84 of file fileinfo.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