Main Neurospaces logo neurospaces 0.1675 Thu, 27 Dec 2007 15:58:18 -0600 hugo

Index of group ./specifications/contextoperations


Index
Up

context operations, wildcard matching and expansion

1. Path selections
2. Context parsing, no fields
3. Context and field parsing
4. Wildcard expansions
5. Relative context subtraction
6. Relative context subtraction, edge cases

1. Path selections

Startup command : ./neurospacesparse -q

(No model has been loaded for the following set of commands.)

1.1. Is neurospaces startup successful ?

1. Part of expected output
neurospaces 

1.2. A symbol must match with its entire subtree

1. Executed command
match /Purk /Purk/**
2. Part of expected output
Match
3. Comment
IIRC this is related to the way solver registration works: a solver is registered with a component (implying the component's subtree), but not with the wildcard that matches will the components in the subtree.  This is currently a shortcoming in the design of the solver registration mechanism.

1.3. Different symbols must not match

1. Executed command
match /Purk1 /Purk
2. Part of expected output
No match

1.4. Symbols must not match with the subtree of a different symbol

1. Executed command
match /Purk1 /Purk/**
2. Part of expected output
No match

1.5. A nested symbol must match with a wildcard.

1. Executed command
match /Purk/soma/gaba/synapse /Purk/soma/**/synapse
2. Part of expected output
Match

1.6. A nested symbol must match with a wildcard over many levels.

1. Executed command
match /Purk/soma/channels/gaba/synapse /Purk/**/synapse
2. Part of expected output
Match

1.7. A nested symbol must match with a multiple wildcard over many levels.

1. Executed command
match /Purk/soma/channels/gaba/synapse /Purk/**/**/synapse
2. Part of expected output
Match

1.8. A symbol nested over two levels must match with a wildcard over two levels.

1. Executed command
match /Purk/soma/gaba/synapse /Purk/**/**/synapse
2. Part of expected output
Match

1.9. A symbol nested over one level must not match with a wildcard over two levels.

1. Executed command
match /Purk/soma/synapse /Purk/**/**/synapse
2. Part of expected output
No match

1.10. A nested symbol must not match with a wildcard over many levels if the names are different.

1. Executed command
match /Purk/soma/channels/gaba/syn /Purk/**/synapse
2. Part of expected output
No match

1.11. A symbol nested over one level must not match with a wildcard over two levels if the names differ.

1. Executed command
match /Purk/soma/synapse /Purk/**/**/syn
2. Part of expected output
No match

1.12. A deeply nested symbol must match with a wildcard, prefixed with the same context.

1. Executed command
match /CerebellarCortex/Purkinjes/0/segments/b0s01[1]/Purkinje_spine/head/par /CerebellarCortex/Purkinjes/0/**
2. Part of expected output
Match

1.13. A deeply nested symbol must match with a wildcard, prefixed with the same context, suffixed with the same context.

1. Executed command
match /CerebellarCortex/Purkinjes/0/segments/b0s01[1]/Purkinje_spine/head/par /CerebellarCortex/Purkinjes/0/segments/b0s01*/Purkinje_spine/head/par
2. Part of expected output
Match

1.14. A deeply nested symbol must match with a wildcard, prefixed with the same context, suffixed with the same context, G-2 wildcard syntax.

1. Executed command
match /CerebellarCortex/Purkinjes/0/segments/b0s01[1]/Purkinje_spine/head/par /CerebellarCortex/Purkinjes/0/segments/b0s01[]/Purkinje_spine/head/par
2. Part of expected output
Match

1.15. A deeply nested symbol must not match with a wildcard, prefixed with a different context, suffixed with the same context.

1. Executed command
match /CerebellarCortex/Purkinjes/0/segments/b0s01[1]/Purkinje_spine/head/par /Cerebellar/Purkinjes/0/segments/b0s01*/Purkinje_spine/head/par
2. Part of expected output
No match

1.16. A deeply nested symbol must not match with a wildcard, prefixed with a different context, suffixed with the same context, G-2 wildcard syntax.

1. Executed command
match /CerebellarCortex/Purkinjes/0/segments/b0s01[1]/Purkinje_spine/head/par /Cerebellar/Purkinjes/0/segments/b0s01[]/Purkinje_spine/head/par
2. Part of expected output
No match

1.17. A deeply nested symbol must match with a wildcard, prefixed with the same context, suffixed with a different context.

1. Executed command
match /CerebellarCortex/Purkinjes/0/segments/b0s01[1]/Purkinje_spine/head/par /CerebellarCortex/Purkinjes/0/segments/b0s01*/Purkinje/head/par
2. Part of expected output
No match

1.18. A deeply nested symbol must match with a wildcard, prefixed with the same context, suffixed with a different context, G-2 wildcard syntax.

1. Executed command
match /CerebellarCortex/Purkinjes/0/segments/b0s01[1]/Purkinje_spine/head/par /CerebellarCortex/Purkinjes/0/segments/b0s01[]/Purkinje/head/par
2. Part of expected output
No match

2. Context parsing, no fields

Startup command : ./neurospacesparse -v 1 -q legacy/networks/network-test.ndf


2.1. Is neurospaces startup successful ?

1. Part of expected output
./neurospacesparse: No errors for .+?/legacy/networks/network-test.ndf.

2.2. Can we get parse info on /CerebellarCortex/Purkinjes ?

1. Executed command
context-info /CerebellarCortex/Purkinjes
2. Part of expected output

- parsed context: /CerebellarCortex/Purkinjes
- found using SymbolsLookupHierarchical()
- found using PidinStackLookupTopSymbol()

2.3. Can we get parse info on //CerebellarCortex/Purkinjes ?

1. Executed command
context-info //CerebellarCortex/Purkinjes
2. Part of expected output

- parsed context: /CerebellarCortex/Purkinjes
- found using SymbolsLookupHierarchical()
- found using PidinStackLookupTopSymbol()

2.4. Can we get parse info on /CerebellarCortex//Purkinjes ?

1. Executed command
context-info /CerebellarCortex//Purkinjes
2. Part of expected output

- parsed context: /CerebellarCortex/Purkinjes
- found using SymbolsLookupHierarchical()
- found using PidinStackLookupTopSymbol()

2.5. Can we get parse info on //CerebellarCortex//Purkinjes ?

1. Executed command
context-info //CerebellarCortex//Purkinjes
2. Part of expected output

- parsed context: /CerebellarCortex/Purkinjes
- found using SymbolsLookupHierarchical()
- found using PidinStackLookupTopSymbol()

2.6. Can we get parse info on //CerebellarCortex/./Purkinjes ?

1. Executed command
context-info //CerebellarCortex/./Purkinjes
2. Part of expected output

- parsed context: /CerebellarCortex/Purkinjes
- found using SymbolsLookupHierarchical()
- found using PidinStackLookupTopSymbol()

3. Context and field parsing

Startup command : ./neurospacesparse -v 1 -q legacy/networks/network-test.ndf


3.1. Is neurospaces startup successful ?

1. Part of expected output
./neurospacesparse: No errors for .+?/legacy/networks/network-test.ndf.

3.2. Can we get input info on /CerebellarCortex/Purkinjes/0/segments/soma/CaT ?

1. Executed command
input-info /CerebellarCortex/Purkinjes/0/segments/soma/CaT
2. Part of expected output
inputs:
CaT input 0: ../Vm, child not defined in this context
CaT input 1: ../Vm, child not defined in this context
CaT input 2: ../Vm, child not defined in this context

3.3. Can we get input info on /CerebellarCortex/Purkinjes/0/segments/soma/CaT ?

1. Executed command
input-info /CerebellarCortex/Purkinjes/0/segments/soma/Ca_pool
2. Part of expected output
inputs:
Ca_pool input 0: ../CaT/I, child not defined in this context
Ca_pool input 1: ../CaT/I, child not defined in this context
Ca_concen input 2: ../CaT/I, child not defined in this context
Ca_concen input 3: ../CaT/I, child not defined in this context

4. Wildcard expansions

Startup command : ./neurospacesparse -v 1 -q legacy/networks/networksmall.ndf


4.1. Is neurospaces startup successful ?

1. Part of expected output
./neurospacesparse: No errors for .+?/legacy/networks/networksmall.ndf.

4.2. A single symbol expansion

1. Executed command
expand /CerebellarCortex/Golgis/1/Golgi_soma/spikegen/**
2. Part of expected output
/CerebellarCortex/Golgis/1/Golgi_soma/spikegen

4.3. A small population expansion

1. Executed command
expand /CerebellarCortex/MossyFibers/**
2. Part of expected output

- /CerebellarCortex/MossyFibers
- /CerebellarCortex/MossyFibers/MossyGrid
- /CerebellarCortex/MossyFibers/0
- /CerebellarCortex/MossyFibers/0/value
- /CerebellarCortex/MossyFibers/0/spikegen
- /CerebellarCortex/MossyFibers/1
- /CerebellarCortex/MossyFibers/1/value
- /CerebellarCortex/MossyFibers/1/spikegen
- /CerebellarCortex/MossyFibers/2
- /CerebellarCortex/MossyFibers/2/value
- /CerebellarCortex/MossyFibers/2/spikegen
- /CerebellarCortex/MossyFibers/3
- /CerebellarCortex/MossyFibers/3/value
- /CerebellarCortex/MossyFibers/3/spikegen

4.4. A selective single population expansion on spike receivers

1. Executed command
expand /CerebellarCortex/Golgis/**/synapse
2. Part of expected output
/CerebellarCortex/Golgis/0/Golgi_soma/mf_AMPA/synapse
- /CerebellarCortex/Golgis/0/Golgi_soma/pf_AMPA/synapse
- /CerebellarCortex/Golgis/1/Golgi_soma/mf_AMPA/synapse
- /CerebellarCortex/Golgis/1/Golgi_soma/pf_AMPA/synapse

4.5. A selective single population expansion on spike generators

1. Executed command
expand /CerebellarCortex/Golgis/**/spikegen
2. Part of expected output
/CerebellarCortex/Golgis/0/Golgi_soma/spikegen
- /CerebellarCortex/Golgis/1/Golgi_soma/spikegen

4.6. A selective single population expansion on spike generators, alternate form

1. Executed command
expand /**/Golgis/**/spikegen
2. Part of expected output
/CerebellarCortex/Golgis/0/Golgi_soma/spikegen
- /CerebellarCortex/Golgis/1/Golgi_soma/spikegen

4.7. A selective multiple population expansion on spike generators

1. Executed command
expand /CerebellarCortex/**/spikegen
2. Part of expected output
/CerebellarCortex/MossyFibers/0/spikegen
- /CerebellarCortex/MossyFibers/1/spikegen
- /CerebellarCortex/MossyFibers/2/spikegen
- /CerebellarCortex/MossyFibers/3/spikegen
- /CerebellarCortex/Granules/0/Granule_soma/spikegen
- /CerebellarCortex/Granules/1/Granule_soma/spikegen
- /CerebellarCortex/Granules/2/Granule_soma/spikegen
- /CerebellarCortex/Granules/3/Granule_soma/spikegen
- /CerebellarCortex/Granules/4/Granule_soma/spikegen
- /CerebellarCortex/Granules/5/Granule_soma/spikegen
- /CerebellarCortex/Golgis/0/Golgi_soma/spikegen
- /CerebellarCortex/Golgis/1/Golgi_soma/spikegen

4.8. A selective single population expansion on spike generators using multiple wildcards

1. Executed command
expand /**/Golgis/**/spikegen
2. Part of expected output
/CerebellarCortex/Golgis/0/Golgi_soma/spikegen
- /CerebellarCortex/Golgis/1/Golgi_soma/spikegen

4.9. A selective multiple population expansion on spike generators using multiple wildcards

1. Executed command
expand /**/**/spikegen
2. Part of expected output
/CerebellarCortex/MossyFibers/0/spikegen
- /CerebellarCortex/MossyFibers/1/spikegen
- /CerebellarCortex/MossyFibers/2/spikegen
- /CerebellarCortex/MossyFibers/3/spikegen
- /CerebellarCortex/Granules/0/Granule_soma/spikegen
- /CerebellarCortex/Granules/1/Granule_soma/spikegen
- /CerebellarCortex/Granules/2/Granule_soma/spikegen
- /CerebellarCortex/Granules/3/Granule_soma/spikegen
- /CerebellarCortex/Granules/4/Granule_soma/spikegen
- /CerebellarCortex/Granules/5/Granule_soma/spikegen
- /CerebellarCortex/Golgis/0/Golgi_soma/spikegen
- /CerebellarCortex/Golgis/1/Golgi_soma/spikegen

4.10. A selective single population expansion on spike generators using multiple wildcards, with a intermediate null match

1. Executed command
expand /CerebellarCortex/Golgis/**/spikegen
2. Part of expected output

- /CerebellarCortex/Golgis/0/Golgi_soma/spikegen
- /CerebellarCortex/Golgis/1/Golgi_soma/spikegen

4.11. Can we find the spikegenerator in the Golgi namespace ?

1. Executed command
expand ::Golgi::G::/Golgi/**/spikegen
2. Part of expected output

- ::/Golgi::/G::/Golgi/Golgi_soma/spikegen

4.12. Can we find the soma in the Golgi namespace ?

1. Executed command
expand ::Golgi::G::/Golgi/*
2. Part of expected output

- ::/Golgi::/G::/Golgi/Golgi_soma

4.13. Can we find the channels in the Golgi namespace ?

1. Executed command
expand ::Golgi::G::/Golgi/Golgi_soma/*
2. Part of expected output

- ::/Golgi::/G::/Golgi/Golgi_soma/spikegen
- ::/Golgi::/G::/Golgi/Golgi_soma/Ca_pool
- ::/Golgi::/G::/Golgi/Golgi_soma/CaHVA
- ::/Golgi::/G::/Golgi/Golgi_soma/H
- ::/Golgi::/G::/Golgi/Golgi_soma/InNa
- ::/Golgi::/G::/Golgi/Golgi_soma/KA
- ::/Golgi::/G::/Golgi/Golgi_soma/KDr
- ::/Golgi::/G::/Golgi/Golgi_soma/Moczyd_KC
- ::/Golgi::/G::/Golgi/Golgi_soma/mf_AMPA
- ::/Golgi::/G::/Golgi/Golgi_soma/pf_AMPA

5. Relative context subtraction

Startup command : ./neurospacesparse -v 1 -q tests/cells/pool1.ndf


5.1. Is neurospaces startup successful ?

1. Part of expected output
./neurospacesparse: No errors for .+?/tests/cells/pool1.ndf.

5.2. Can we do a context subraction, from channel to segment ?

1. Executed command
context-subtract /pool1/segments/soma/cat /pool1/segments/soma
2. Part of expected output

first-second: ./cat
second-first: ..
3. Comment
for conversion of a genesis SLI CHANNEL message

5.3. Can we do a context subraction, from segment to channel ?

1. Executed command
context-subtract /pool1/segments/soma /pool1/segments/soma/cat
2. Part of expected output

first-second: ..
second-first: ./cat
3. Comment
for conversion of a genesis SLI VOLTAGE message

5.4. Can we do a context subraction, identical elements ?

1. Executed command
context-subtract /pool1/segments/soma/cat /pool1/segments/soma/cat
2. Part of expected output

first-second: .
second-first: .

5.5. Can we do a context subraction, 2 symbols ?

1. Executed command
context-subtract /pool1/segments /pool1/segments/soma/cat
2. Part of expected output

first-second: ../..
second-first: ./soma/cat

5.6. Can we do a context subraction, 3 symbols ?

1. Executed command
context-subtract /pool1 /pool1/segments/soma/cat
2. Part of expected output

first-second: ../../..
second-first: ./segments/soma/cat

5.7. Can we do a context subraction, 3 symbols, siblings involved (1) ?

1. Executed command
context-subtract /pool1/segments/soma/cat/cat_gate_inactivation/B /pool1/segments/soma/ca_pool
2. Part of expected output

first-second: .././cat/cat_gate_inactivation/B
second-first: ../../.././ca_pool

5.8. Can we do a context subraction, 3 symbols, siblings involved (2) ?

1. Executed command
context-subtract /pool1/segments/soma/cat/cat_gate_inactivation/A /pool1/segments/soma/ca_pool
2. Part of expected output

first-second: .././cat/cat_gate_inactivation/A
second-first: ../../.././ca_pool

5.9. Can we do a context subraction, 2 symbols, siblings involved ?

1. Executed command
context-subtract /pool1/segments/soma/cat/cat_gate_inactivation /pool1/segments/soma/ca_pool
2. Part of expected output

first-second: .././cat/cat_gate_inactivation
second-first: ../.././ca_pool

6. Relative context subtraction, edge cases

Startup command : ./neurospacesparse -v 1 -q tests/cells/pool1.ndf


6.1. Is neurospaces startup successful ?

1. Part of expected output
./neurospacesparse: No errors for .+?/tests/cells/pool1.ndf.

6.2. Can we do a context subraction, edge case last descendant, child - parent ?

1. Executed command
context-subtract /pool1/segments/soma/ca_pool /pool1/segments/soma
2. Part of expected output

first-second: ./ca_pool
second-first: ..

6.3. Can we do a context subraction, edge case last descendant, siblings ?

1. Executed command
context-subtract /pool1/segments/soma/ca_pool /pool1/segments/soma/cat
2. Part of expected output

first-second: .././ca_pool
second-first: .././cat