Example #1
0
def contR1():
	ic = (2,2,2,2,2)
	b = auto.run(start(ic, (3, 2.0, 200), 1), ICP=[1,2])
	l1 = auto.run(auto.load(b('LP1'), ISP=2, SP=["HB"], ISW=2, ICP=[2,1], DS=-.001, UZSTOP={1:[0,4], 2:[.001,4]}))
	l2 = auto.run(auto.load(b('LP2'), ISP=2, SP=["HB"], ISW=2, ICP=[2,1], DS=-.001, UZSTOP={1:[0,4], 2:[.001,4]}))
	hb = auto.run(auto.load(b('HB1'), ISP=2, SP=["LP2"], ISW=2, DS=.001, UZSTOP={1:[0,4], 2:[.001,4]}))
	return (b, l1, l2, hb) 
Example #2
0
def start(ic=None, pars=None, rna=0, tt=800.0, **kwargs):
	if not pars:
		pars = models._defaults[rna][1]
	s = models.makeode( ic, pars, tt=tt, rna = rna, run=True)
	pars = pars2silly(pars)
	tdir = os.path.join(PDIR, MDIRS[rna])
	os.chdir(tdir)
	sol = auto.load(s[-1,:], PAR=pars)
	r = auto.load(sol, e=MDIRS[rna], c=MDIRS[rna], PAR=pars, **kwargs)
	return r
Example #3
0
def scanforHB(er = (2,0, -.1), r = 2000):
	ic = (2,2,2,2,2)
	hbs = []
	hbis = []
	hb1 = None
	for e in apply(np.arange, er):
		b = auto.run(start(ic, (3, e, r), 1), ICP=[1,2])
		h = b("HB")
		if h:
			hbs.append( (h[0].PAR['PAR(1)'], e) )
			if not hb1:
				hb1 = h[0]
			hbis.append(h)
	hbc = auto.run(auto.load(hb1, ISW=2, DS=.001, UZSTOP={1:[0,4], 2:[.001,4]}))
	return (np.array(hbs), hbc, hbis)
Example #4
0
def _2parFB(pt, npts=2000):
	fw = auto.run(auto.load(pt, ISW=2, DS=.001, UZSTOP={1:[0,4], 2:[.001,4]}, NMX=npts))
	bw = auto.run(auto.load(pt, ISW=2, DS=-.001, UZSTOP={1:[0,4], 2:[.001,4]}, NMX=npts))
	return [fw, bw]
Example #5
0
# Libraries we need
import pyxhook
import time
import pyautogui
import zmq
import json
import signal
import sys
import threading
import xerox
import auto

auto.load()

auto.models.load_models("user_model.pkl")

lis=[  "Home","News","Contact","About",
        "Support","Blog","Tools","Base",
        "Custom","More","Logo","Friends",
        "Partners","People","Work",
    ]

s=""

context = zmq.Context()
sock1 = context.socket(zmq.PAIR)
sock1.bind("tcp://127.0.0.1:5684")

class mythread(threading.Thread):

    def __init__(self):