| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DybAlg::TestShuffle Namespace Reference


Classes

class  DumpRandom

Functions

def configure
def run

Variables

list filenames = []

Function Documentation

def DybAlg::TestShuffle::configure (   argv = None  ) 

Definition at line 227 of file TestShuffle.py.

00227                         :
00228     global filenames
00229 
00230     # Everytime this module is used in a job it adds a new file
00231     if not argv: 
00232         if not filenames:
00233             filenames.append("test_shuffle.txt")
00234         return
00235     filenames.append(argv[0])
00236 
00237     from DybAlg.DybAlgConf import DybShuffle
00238     rs = DybShuffle("random_seeder")
00239     try:
00240         burn = argv[1]
00241     except IndexError:
00242         print 'Using default burn count',rs.BurnCount
00243     else:
00244         rs.BurnCount = int(burn)
00245         print 'Setting burn to',rs.BurnCount
00246     #rs.OutputLevel = 2
00247 
00248     return
00249 
def run(app):

def DybAlg::TestShuffle::run (   app  ) 

Definition at line 250 of file TestShuffle.py.

00250             :
00251     global filenames
00252     for fn in filenames:
00253         name = os.path.splitext(os.path.basename(fn))[0]
00254         alg = DumpRandom(name,fn)
00255         app.addAlgorithm(alg)
00256         print 'Added algorithm: DumpRandom("%s","%s")' % (name, fn)
00257         continue
00258     return
00259 
00260 


Variable Documentation

list DybAlg::TestShuffle::filenames = [] [static]

Definition at line 225 of file TestShuffle.py.

| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:40:41 2011 for DybAlg by doxygen 1.4.7