Skip to content

Instantly share code, notes, and snippets.

@lqc
Created January 28, 2010 15:44
Show Gist options
  • Select an option

  • Save lqc/288844 to your computer and use it in GitHub Desktop.

Select an option

Save lqc/288844 to your computer and use it in GitHub Desktop.
def bRun(val, name, bf, res, bfpt, info, mlt, pr, nr = {0:1}, check = False):
solutions = {}
new, cz = runF(val, name, bf, res, check)
solt = oneTab(new)
lst = nr.keys()[-1]
last = glMulti(nr)
if solt["e"] > 0 and last < mlt:
m = 1
solutions[lst] = {"data" : solt, 'mlt' : last}
tmp = newName(name, nr, True)
if len(nr) == 1:
fwrite("dane.%s.dat" % tmp, info, {"dat":val,"UZR" : "{5: %s}" % bf})
else:
fwrite("dane.%s.dat" % tmp, info, {'ISW' : -1, 'NTST' : 1000, 'IRS' : 1, 'UZR' : '{5 : %s}' % bf})
perLoop = periodInfo(cz, bfpt, last)
if len(perLoop) > 0:
solutions[lst]["next"] = {}
step = 1
for i in perLoop:
var = getSelectData(val, i)
nr[lst + 1] = perLoop[i][0]
last = glMulti(nr)
if last < mlt and lst < 3:
tmp = newName(name, nr)
multiPerVar(var, pr, tmp, last)
tmpNr = nr
solutions[lst]["next"][step] = bRun(val, tmp, bf, res, bfpt, info, mlt, pr, tmpNr, "rtbp2")
step += 1
if len(solutions[lst]["next"]) == 0:
del solutions[lst]["next"]
return solutions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment