/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
Scraper::dcs::RCLS Class Reference

List of all members.

Public Member Functions

def __call__

Static Public Attributes

tuple kptn = re.compile("(\d\d)")

Detailed Description

Definition at line 53 of file dcs.py.


Member Function Documentation

def Scraper::dcs::RCLS::__call__ (   self,
  k 
)

Definition at line 55 of file dcs.py.

00056                          :
00057         #Returns 1st row/col/layer for given HV
00058         m = self.kptn.search(k)
00059         #sign is positive for positive voltage, -1 for negative
00060         sign = k.find("P")
00061         if m:
00062             c = int(m.group())
00063             layernum = (c+1)%4
00064             if layernum==0:
00065                 layernum=4
00066             if sign < 0:
00067             #    layerdict = {1:'A',2:'B',3:'C',4:'D'}
00068                 s = -1
00069             elif sign > 0:
00070             #    layerdict = {1:'W',2:'X',3:'Y',4:'X'}
00071                 s = 1
00072             #layer = layerdict[layernum]
00073             layer = layernum
00074             block = int(c/4) + 1
00075             col = int((block-1)*9/6) + 1
00076             row = ((block-1)*9)%6 + 1
00077             return (row,col,layer,s,)
00078         return None


Member Data Documentation

tuple Scraper::dcs::RCLS::kptn = re.compile("(\d\d)") [static]

Definition at line 54 of file dcs.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