Classes | |
class | DumpRandom |
Functions | |
def | configure |
def | run |
Variables | |
list | filenames = [] |
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
list DybAlg::TestShuffle::filenames = [] [static] |
Definition at line 225 of file TestShuffle.py.