Main Neurospaces logo Genesis 2 Backwards Compatibility Bridge

Index of group ./specifications/core/showfield


Index
Up

create a compartment, set its fields and then copy it

1. Can we read fields one command at a time?
2. Can we read all fields from one command?
3. Can we print extended info for each field one at a time?
4. Can we print from a wildcard?
5. Can we show a field from a heccer solved variable?

1. Can we read fields one command at a time?

Startup command : src/ns-sli ..//tests/scripts/genesis-2/showfield1.g


1.1. Can we read fields one at a time?

1. Expected output
Checking each field one at a time

[ /n/c ]
Cm	4.575370e-11


[ /n/c ]
Rm	3.584410e+08


[ /n/c ]
Ra	3.605020e+05


[ /n/c ]
len	1.000000e+00


[ /n/c ]
dia	1.000000e+00


[ /n/c ]
initVm	-6.800000e-02


[ /n/c ]
Eleak	-8.000000e-02

2. Can we read all fields from one command?

Startup command : src/ns-sli ..//tests/scripts/genesis-2/showfield2.g


2.1. Can we read fields all at once?

1. Expected output
Checking each field on one line

[ /n/c ]
Cm	4.575370e-11

Rm	3.584410e+08

Ra	3.605020e+05

len	1.000000e+00

dia	1.000000e+00

initVm	-6.800000e-02

Eleak	-8.000000e-02

3. Can we print extended info for each field one at a time?

Startup command : src/ns-sli ..//tests/scripts/genesis-2/showfield5.g


3.1. Can we print extended information for each field?

1. Expected output
[ /n/c ]
'parameter name': CM
type: function
'function name': GENESIS2
'function parameters':

  -
    'parameter name': scale
    type: number
    value: 1
  -
    'parameter name': value
    type: number
    value: 4.57537e-11

[ /n/c ]
'parameter name': RM
type: function
'function name': GENESIS2
'function parameters':

  -
    'parameter name': scale
    type: number
    value: 1
  -
    'parameter name': value
    type: number
    value: 3.58441e+08

[ /n/c ]
'parameter name': RA
type: function
'function name': GENESIS2
'function parameters':

  -
    'parameter name': scale
    type: number
    value: 1
  -
    'parameter name': value
    type: number
    value: 360502

[ /n/c ]
'parameter name': LENGTH
type: number
value: 1

[ /n/c ]
'parameter name': DIA
type: number
value: 1

[ /n/c ]
'parameter name': Vm_init
type: number
value: -0.068

[ /n/c ]
'parameter name': ELEAK
type: number
value: -0.08

4. Can we print from a wildcard?

Startup command : src/ns-sli ..//tests/scripts/genesis-2/showfield3.g


4.1. Can we print out using a wildcard for the element field?

1. Expected output
Testing wildcard: display all fields

[ /n/c ]
---
show_parameters:
'parameter name': ELEAK
type: number
value: -0.08

'parameter name': Vm_init
type: number
value: -0.068

'parameter name': DIA
type: number
value: 1

'parameter name': LENGTH
type: number
value: 1

'parameter name': RA
type: function
'function name': GENESIS2
'function parameters':

  -
    'parameter name': scale
    type: number
    value: 1
  -
    'parameter name': value
    type: number
    value: 360502

'parameter name': RM
type: function
'function name': GENESIS2
'function parameters':

  -
    'parameter name': scale
    type: number
    value: 1
  -
    'parameter name': value
    type: number
    value: 3.58441e+08

'parameter name': CM
type: function
'function name': GENESIS2
'function parameters':

  -
    'parameter name': scale
    type: number
    value: 1
  -
    'parameter name': value
    type: number
    value: 4.57537e-11

5. Can we show a field from a heccer solved variable?

Startup command : src/ns-sli ..//tests/scripts/heccer/springmass1.g


5.1. Can we read voltage potential from compartment 1 in springmass1.g?

1. Executed command
showfield /hardcoded_neutral/c1 Vm
2. Expected output
[ /hardcoded_neutral/c1 ]
Vm	-7.916984e-02

5.2. Can we read voltage potential from compartment 2 in springmass1.g?

1. Executed command
showfield /hardcoded_neutral/c2 Vm
2. Expected output
[ /hardcoded_neutral/c2 ]
Vm	-7.916970e-02