def initialize(): pl.close('all') global info, network, system, traces, torus, sweepingPhasespace reload(model) info = nf.info() network = netw.network(info=info) system = sys.system(info=info, network=network) traces = tra.traces(system, network, info=info) torus = tor.torus(system, network, traces, info=info) network.system = system system.traces = traces ## customize system for web system.setParams(epsilon=0.3) system.ax.set_xlabel(r'Inactivation Variable') system.ax.set_ylabel(r'Voltage Variable') system.ax.set_title('') system.fig.tight_layout() plugins.connect(system.fig, DragPlugin(eventHandlerURL="updatesystem", radioButtonID="systemRadio")) # customize network network.ax.patch.set_facecolor('#777777') network.moveText(2, [0.02, -0.1]) network.moveText(3, [0.02, -0.1]) network.ax.texts[6].set_text('1') network.ax.texts[7].set_text('2') network.ax.texts[8].set_text('3') plugins.connect(network.fig, DragPlugin(eventHandlerURL="updatenetwork", radioButtonID="networkRadio")) # customize traces traces.ax.patch.set_facecolor('#777777') traces.fig.tight_layout() # customize torus torus.ax_traces.set_xlabel(r'phase lag: 1-2') torus.ax_basins.set_xlabel(r'phase lag: 1-2') torus.ax_traces.set_ylabel(r'phase lag: 1-3') torus.fig.tight_layout() torus.switch_processor() # switches on the gpu if available if torus.USE_GPU: torus.setGridsize(24) plugins.connect(torus.fig, ClickPlugin(eventHandlerURL="updatetorus", radioButtonID="torusRadio")) # reload timing variable sweepingPhasespace = False;
def __init__(self, system, network, traces, info=None, position=None): torus_2D.torus_2D.__init__(self, system, network, traces, info, position) if __name__ == "__main__": import system as sys import network as netw import traces as tra import info as nf import pylab as pl i = nf.info() s = sys.system(info=i) n = netw.network(info=i) t = tra.traces(s, n, info=i) tor = torus(s, n, t, info=i) pl.show()
if __name__ == "__main__": import pylab as pl import system as sys import network3N as netw import traces as tra import info as nf info = nf.info() system = sys.system(info=info) network = netw.network(info=info) traces = tra.traces(system, network, info=info) t = torus(system, network, traces, info=info) system.torus = t t.vectorField_prc() pl.show()
#!/usr/bin/env python #import Tkinter import system as sys import network as netw import traces as tra import info as nf import torus as tor import pylab as pl #root = Tkinter.Tk() #screen_width = root.winfo_screenwidth() #screen_height = root.winfo_screenheight() pos_info = '+0+600' pos_tra = '+300+600' pos_net = '+300+0' pos_sys = '+0+0' pos_torus = '+800+0' i = nf.info(position=pos_info) s = sys.system(info=i, position=pos_sys) n = netw.network(info=i, position=pos_net) t = tra.traces(s, n, info=i, position=pos_tra) tor = tor.torus(s, n, t, info=i, position=pos_torus) pl.show()
import system as sys import network3N as netw import traces as tra import info as nf import torus as tor import pylab as pl pos_info = '+0+600' pos_tra = '+300+600' pos_net = '+300+0' pos_sys = '+0+0' pos_torus = '+800+0' info = nf.info(position=pos_info) net = netw.network(g_inh=0.015, info=info, position=pos_net) system = sys.system(info=info, position=pos_sys, network=net) traces = tra.traces(system, net, info=info, position=pos_tra) torus = tor.torus(system, net, traces, info=info, position=pos_torus) net.system = system system.traces = traces if pl.get_backend() == 'TkAgg': system.fig.tight_layout() traces.fig.tight_layout() torus.fig.tight_layout() pl.show()
#!/usr/bin/env python import system as sys import traces as tra import info as nf import pylab as pl pos_info = '+0+600' pos_tra = '+300+600' pos_sys = '+0+0' i = nf.info(position=pos_info) s = sys.system(info=i, position=pos_sys) t = tra.traces(s, info=i, position=pos_tra) if pl.get_backend() == 'TkAgg': s.fig.tight_layout() t.fig.tight_layout() pl.show()
import thetax2 as model import torus_2D import numpy as np class torus(torus_2D.torus_2D): model = model V_trigger = np.pi / 2. def __init__(self, system, network, traces, info=None, position=None): torus_2D.torus_2D.__init__(self, system, network, traces, info, position) if __name__ == "__main__": import system as sys import network as netw import traces as tra import info as nf import pylab as pl i = nf.info() s = sys.system(info=i) n = netw.network(info=i) t = tra.traces(s, n, info=i) tor = torus(s, n, t, info=i) pl.show()
#!/usr/bin/env python import system as sys import network3N as netw import traces as tra import info as nf import torus as tor import pylab as pl pos_info = '+0+600' pos_tra = '+300+600' pos_net = '+300+0' pos_sys = '+0+0' pos_torus = '+800+0' info = nf.info(position=pos_info) net = netw.network(g_inh=0.015, info=info, position=pos_net) system = sys.system(info=info, position=pos_sys, network=net) traces = tra.traces(system, net, info=info, position=pos_tra) torus = tor.torus(system, net, traces, info=info, position=pos_torus) net.system = system system.traces = traces if pl.get_backend() == 'TkAgg': system.fig.tight_layout() traces.fig.tight_layout() torus.fig.tight_layout() pl.show()