<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
 Hello,<div><br></div><div>I am writing a tool to do some neural simulation, where I have several different neuron groups, which are defined as python classes.  Is there a preferred way to write a cython-only replacement such that the end-user sees no difference?  What I mean is that they should be able to do:</div><div><br></div><div>import sim</div><div><br></div><div>n1=sim.NeuronGroup1(5)</div><div><br></div><div>sim.run_sim([n1])</div><div><br></div><div>and if the cython version exists, use that one (for both the neuron group and the function to run the simulation), otherwise use the python one.</div><div><br></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>thanks,</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>Brian Blais<br><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div>--</div><div>Brian Blais</div><div><a href="mailto:bblais@gmail.com">bblais@gmail.com</a></div><div><a href="http://web.bryant.edu/~bblais">http://web.bryant.edu/~bblais</a></div></span> </div><br></div></body></html>