Edit History

Wiki » History » Version 3

Padraig Gleeson, 30 Apr 2014 14:57

1 1 Padraig Gleeson
Introduction
2 1 Padraig Gleeson
============
3 1 Padraig Gleeson
4 1 Padraig Gleeson
More details on the Connection Set Algebra can be found [here](http://software.incf.org/software/csa).
5 1 Padraig Gleeson
6 1 Padraig Gleeson
Installation of CSA
7 1 Padraig Gleeson
-------------------
8 1 Padraig Gleeson
9 1 Padraig Gleeson
Either install the latest stable version from [here](http://software.incf.org/software/csa/download), or get the latest code with:
10 1 Padraig Gleeson
11 1 Padraig Gleeson
    svn co http://svn.incf.org/svn/csa
12 1 Padraig Gleeson
    cd csa
13 1 Padraig Gleeson
    sudo python setup.py install
14 1 Padraig Gleeson
15 1 Padraig Gleeson
Clone the CSA Showcase project
16 1 Padraig Gleeson
------------------------------
17 1 Padraig Gleeson
18 1 Padraig Gleeson
Get a local copy of this project from OSB with:
19 1 Padraig Gleeson
20 1 Padraig Gleeson
    git clone https://github.com/OpenSourceBrain/CSAShowcase.git
21 1 Padraig Gleeson
    cd CSAShowcase
22 1 Padraig Gleeson
23 1 Padraig Gleeson
Examples
24 1 Padraig Gleeson
--------
25 1 Padraig Gleeson
26 3 Padraig Gleeson
### Basic CSA example
27 1 Padraig Gleeson
28 3 Padraig Gleeson
A [simple example](http://www.opensourcebrain.org/projects/csashowcase/repository/revisions/master/entry/CSA/gaussian.py) can be run be run with
29 3 Padraig Gleeson
30 1 Padraig Gleeson
    cd CSA
31 1 Padraig Gleeson
    python gaussian.py
32 1 Padraig Gleeson
33 2 Padraig Gleeson
This should produce a view of the generated network as follows:
34 2 Padraig Gleeson
35 1 Padraig Gleeson
![](Selection_135.png)
36 3 Padraig Gleeson
37 3 Padraig Gleeson
### CSA example using PyNN
38 3 Padraig Gleeson
39 3 Padraig Gleeson
[Another example](http://www.opensourcebrain.org/projects/csashowcase/repository/revisions/master/entry/CSA/pynn_csa.py) illustrates the interaction of CSA and PyNN. The following code:
40 3 Padraig Gleeson
41 3 Padraig Gleeson
<pre>
42 3 Padraig Gleeson
python pynn\_csa.py nest
43 3 Padraig Gleeson
44 3 Padraig Gleeson
</pre>
45 3 Padraig Gleeson
will generate and run the example on NEST, while this:
46 3 Padraig Gleeson
47 3 Padraig Gleeson
<pre>
48 3 Padraig Gleeson
python pynn\_csa.py neuroml2
49 3 Padraig Gleeson
50 3 Padraig Gleeson
</pre>
51 3 Padraig Gleeson
will generate the network and save the structure in NeuroML 2 format.
52 3 Padraig Gleeson
53 3 Padraig Gleeson
For more details on how NeuroML 2 an PyNN work together, see [here](http://www.neuroml.org/pynn.php).