Wiki » History » Version 4
Richard Gerkin, 30 Apr 2014 14:57
| 1 | 1 | Padraig Gleeson | Introduction |
|---|---|---|---|
| 2 | 1 | Padraig Gleeson | ============ |
| 3 | 1 | Padraig Gleeson | |
| 4 | 1 | Padraig Gleeson | A project highlighting some of the possible interactions between OSB and NeuroElectro/SciUnit |
| 5 | 1 | Padraig Gleeson | |
| 6 | 1 | Padraig Gleeson | Installing SciUnit |
| 7 | 1 | Padraig Gleeson | ------------------ |
| 8 | 1 | Padraig Gleeson | |
| 9 | 3 | Richard Gerkin | [SciUnit]() https://github.com/rgerkin/sciunit |
| 10 | 1 | Padraig Gleeson | |
| 11 | 1 | Padraig Gleeson | The Neuroelectro API |
| 12 | 1 | Padraig Gleeson | -------------------- |
| 13 | 1 | Padraig Gleeson | |
| 14 | 2 | Richard Gerkin | See [here](http://goo.gl/fuPSu) |
| 15 | 4 | Richard Gerkin | |
| 16 | 4 | Richard Gerkin | Testing neuroConstruct models with neurounit (sciunit): |
| 17 | 4 | Richard Gerkin | ------------------------------------------------------- |
| 18 | 4 | Richard Gerkin | |
| 19 | 4 | Richard Gerkin | In jython: |
| 20 | 4 | Richard Gerkin | |
| 21 | 4 | Richard Gerkin | \$ cd \~/neuroConstruct \# Or wherever it is. |
| 22 | 4 | Richard Gerkin | \$ ./nCjython \# Assumes there is a “jython” somewhere in your system path. |
| 23 | 4 | Richard Gerkin | >>> import neurounit.jutils as j |
| 24 | 4 | Richard Gerkin | >>> print j.get\_volts() |
| 25 | 4 | Richard Gerkin | |
| 26 | 4 | Richard Gerkin | In python: |
| 27 | 4 | Richard Gerkin | |
| 28 | 4 | Richard Gerkin | \$ cd \~/neuroConstruct \# Or wherever it is. |
| 29 | 4 | Richard Gerkin | \$ python |
| 30 | 4 | Richard Gerkin | >>> import neurounit.putils as p |
| 31 | 4 | Richard Gerkin | >>> data = p.run() \# Opens the bridge to jython. |
| 32 | 4 | Richard Gerkin | >>> volts = data.receive() \# Runs the simulations and receives the data (hangs). |
| 33 | 4 | Richard Gerkin | >>> print volts |