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

Index of group ./specifications/export_library


Index
Up

exporting models in a variety of export formats

1. Export of a gate model
2. Parsing of the generated gate NDF file
3. Parsing of the generated gate xml file
4. Export of a channel model
5. Parsing of the generated channel NDF file
6. Parsing of the generated channel xml file
7. Export of a channel model
8. Parsing of the generated cell NDF file
9. Parsing of the generated cell xml file
10. Export of gates/naf_activation.ndf before reading it back
11. Reading of gates/naf_activation.ndf after exporting it
12. Reading of gates/naf_activation.ndf after exporting it
13. Export of tests/channels/naf.ndf before reading it back
14. Reading of tests/channels/naf.ndf after exporting it
15. Reading of tests/channels/naf.ndf after exporting it
16. Export of tests/cells/singlea_naf.ndf before reading it back
17. Reading of tests/cells/singlea_naf.ndf after exporting it
18. Reading of tests/cells/singlea_naf.ndf after exporting it

1. Export of a gate model

Startup command : ./neurospacesparse -q -v 1 gates/naf_activation.ndf


1.1. Is neurospaces startup successful ?

1. Part of expected output
./neurospacesparse: No errors for .+?/gates/naf_activation.ndf.

1.2. Can we export the gate model to an NDF file ?

1. Executed command
export library ndf /tmp/1.ndf /**
2. Part of expected output
neurospaces

1.3. Does the exported gate NDF file contain the correct model (1) ?

1. Part of expected output
application_output_file: /tmp/1.ndf
#!neurospacesparse
// -*- NEUROSPACES -*-

NEUROSPACES NDF

PRIVATE_MODELS
  GATE_KINETIC "A_4_4"
    BINDABLES
      INPUT Vm,
      OUTPUT rate,
    END BINDABLES
    BINDINGS
      INPUT ..->Vm,
    END BINDINGS
    PARAMETERS
      PARAMETER ( HH_AB_Add_Num = 35000 ),
      PARAMETER ( HH_AB_Mult = 0 ),
      PARAMETER ( HH_AB_Factor_Flag = -1 ),
      PARAMETER ( HH_AB_Add_Den = 0 ),
      PARAMETER ( HH_AB_Offset_E = 0.005 ),
      PARAMETER ( HH_AB_Div_E = -0.01 ),
    END PARAMETERS
  END GATE_KINETIC
  CHILD "A_4_4" "A_inserted_4"
  END CHILD
  GATE_KINETIC "B_5_5"
    BINDABLES
      INPUT Vm,
      OUTPUT rate,
    END BINDABLES
    BINDINGS
      INPUT ..->Vm,
    END BINDINGS
    PARAMETERS
      PARAMETER ( HH_AB_Add_Num = 7000 ),
      PARAMETER ( HH_AB_Mult = 0 ),
      PARAMETER ( HH_AB_Factor_Flag = -1 ),
      PARAMETER ( HH_AB_Add_Den = 0 ),
      PARAMETER ( HH_AB_Offset_E = 0.065 ),
      PARAMETER ( HH_AB_Div_E = 0.02 ),
    END PARAMETERS
  END GATE_KINETIC
  CHILD "B_5_5" "B_inserted_5"
  END CHILD
  HH_GATE "naf_activation_3_3"
    BINDABLES
      INPUT Vm,
      OUTPUT activation,
    END BINDABLES
    BINDINGS
      INPUT ..->Vm,
    END BINDINGS
    PARAMETERS
      PARAMETER ( state_init = 0.00784064 ),
      PARAMETER ( POWER = 3 ),
    END PARAMETERS
    CHILD "A_4_4" "A"
    END CHILD
    CHILD "B_5_5" "B"
    END CHILD
  END HH_GATE
  CHILD "naf_activation_3_3" "naf_activation_inserted_3"
  END CHILD
END PRIVATE_MODELS
PUBLIC_MODELS
  CHILD "naf_activation_3_3" "naf_activation"
  END CHILD
END PUBLIC_MODELS

1.4. Can we export the gate model to an XML file ?

1. Executed command
export library xml /tmp/1.xml /**
2. Part of expected output
neurospaces

1.5. Does the exported gate XML file contain the correct model ?

1. Part of expected output
application_output_file: /tmp/1.xml
<neurospaces type="ndf"/>

<private_models>
  <GATE_KINETIC> <name>A_4_4</name>
    <bindables>
      <input> <name>Vm</name> </input>
      <output> <name>rate</name> </output>
    </bindables>
    <bindings>
      <input> <name>..->Vm</name> </input>
    </bindings>
    <parameters>
      <parameter> <name>HH_AB_Add_Num</name><value>35000</value> </parameter>
      <parameter> <name>HH_AB_Mult</name><value>0</value> </parameter>
      <parameter> <name>HH_AB_Factor_Flag</name><value>-1</value> </parameter>
      <parameter> <name>HH_AB_Add_Den</name><value>0</value> </parameter>
      <parameter> <name>HH_AB_Offset_E</name><value>0.005</value> </parameter>
      <parameter> <name>HH_AB_Div_E</name><value>-0.01</value> </parameter>
    </parameters>
  </GATE_KINETIC>
  <child> <prototype>A_4_4</prototype> <name>A_inserted_4</name>
  </child>
  <GATE_KINETIC> <name>B_5_5</name>
    <bindables>
      <input> <name>Vm</name> </input>
      <output> <name>rate</name> </output>
    </bindables>
    <bindings>
      <input> <name>..->Vm</name> </input>
    </bindings>
    <parameters>
      <parameter> <name>HH_AB_Add_Num</name><value>7000</value> </parameter>
      <parameter> <name>HH_AB_Mult</name><value>0</value> </parameter>
      <parameter> <name>HH_AB_Factor_Flag</name><value>-1</value> </parameter>
      <parameter> <name>HH_AB_Add_Den</name><value>0</value> </parameter>
      <parameter> <name>HH_AB_Offset_E</name><value>0.065</value> </parameter>
      <parameter> <name>HH_AB_Div_E</name><value>0.02</value> </parameter>
    </parameters>
  </GATE_KINETIC>
  <child> <prototype>B_5_5</prototype> <name>B_inserted_5</name>
  </child>
  <HH_GATE> <name>naf_activation_3_3</name>
    <bindables>
      <input> <name>Vm</name> </input>
      <output> <name>activation</name> </output>
    </bindables>
    <bindings>
      <input> <name>..->Vm</name> </input>
    </bindings>
    <parameters>
      <parameter> <name>state_init</name><value>0.00784064</value> </parameter>
      <parameter> <name>POWER</name><value>3</value> </parameter>
    </parameters>
    <child> <prototype>A_4_4</prototype> <name>A</name>
    </child>
    <child> <prototype>B_5_5</prototype> <name>B</name>
    </child>
  </HH_GATE>
  <child> <prototype>naf_activation_3_3</prototype> <name>naf_activation_inserted_3</name>
  </child>
</private_models>
<public_models>
  <child> <prototype>naf_activation_3_3</prototype> <name>naf_activation</name>
  </child>
</public_models>
2. Comment
xml to html conversion fails when converting this test to html

2. Parsing of the generated gate NDF file

Startup command : ./neurospacesparse -q -v 1 /tmp/1.ndf


2.1. Is neurospaces startup successful ?

1. Part of expected output
./neurospacesparse: No errors for /tmp/1.ndf.

3. Parsing of the generated gate xml file

Startup command : ./neurospacesparse -q -v 1 /tmp/1.xml


3.1. Is neurospaces startup successful ?

1. Part of expected output
./neurospacesparse: No errors for /tmp/1.xml.

4. Export of a channel model

Startup command : ./neurospacesparse -q -v 1 tests/channels/naf.ndf


4.1. Is neurospaces startup successful ?

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

4.2. Can we export the channel model to an NDF file ?

1. Executed command
export library ndf /tmp/1.ndf /**
2. Part of expected output
neurospaces

4.3. Does the exported channel NDF file contain the correct model (1) ?

1. Part of expected output
application_output_file: /tmp/1.ndf
#!neurospacesparse
// -*- NEUROSPACES -*-

NEUROSPACES NDF

PRIVATE_MODELS
  GATE_KINETIC "A_6_6"
    BINDABLES
      INPUT Vm,
      OUTPUT rate,
    END BINDABLES
    BINDINGS
      INPUT ..->Vm,
    END BINDINGS
    PARAMETERS
      PARAMETER ( HH_AB_Add_Num = 35000 ),
      PARAMETER ( HH_AB_Mult = 0 ),
      PARAMETER ( HH_AB_Factor_Flag = -1 ),
      PARAMETER ( HH_AB_Add_Den = 0 ),
      PARAMETER ( HH_AB_Offset_E = 0.005 ),
      PARAMETER ( HH_AB_Div_E = -0.01 ),
    END PARAMETERS
  END GATE_KINETIC
  CHILD "A_6_6" "A_inserted_6"
  END CHILD
  GATE_KINETIC "B_7_7"
    BINDABLES
      INPUT Vm,
      OUTPUT rate,
    END BINDABLES
    BINDINGS
      INPUT ..->Vm,
    END BINDINGS
    PARAMETERS
      PARAMETER ( HH_AB_Add_Num = 7000 ),
      PARAMETER ( HH_AB_Mult = 0 ),
      PARAMETER ( HH_AB_Factor_Flag = -1 ),
      PARAMETER ( HH_AB_Add_Den = 0 ),
      PARAMETER ( HH_AB_Offset_E = 0.065 ),
      PARAMETER ( HH_AB_Div_E = 0.02 ),
    END PARAMETERS
  END GATE_KINETIC
  CHILD "B_7_7" "B_inserted_7"
  END CHILD
  HH_GATE "naf_activation_5_5"
    BINDABLES
      INPUT Vm,
      OUTPUT activation,
    END BINDABLES
    BINDINGS
      INPUT ..->Vm,
    END BINDINGS
    PARAMETERS
      PARAMETER ( state_init = 0.00784064 ),
      PARAMETER ( POWER = 3 ),
    END PARAMETERS
    CHILD "A_6_6" "A"
    END CHILD
    CHILD "B_7_7" "B"
    END CHILD
  END HH_GATE
  CHILD "naf_activation_5_5" "naf_gate_activation_prototype_5_13"
  END CHILD
  CHILD "naf_gate_activation_prototype_5_13" "naf_gate_activation_5_16"
  END CHILD
  CHILD "naf_gate_activation_5_16" "naf_gate_activation_inserted_16"
  END CHILD
  GATE_KINETIC "A_11_11"
    BINDABLES
      INPUT Vm,
      OUTPUT rate,
    END BINDABLES
    BINDINGS
      INPUT ..->Vm,
    END BINDINGS
    PARAMETERS
      PARAMETER ( HH_AB_Add_Num = 225 ),
      PARAMETER ( HH_AB_Mult = 0 ),
      PARAMETER ( HH_AB_Factor_Flag = -1 ),
      PARAMETER ( HH_AB_Add_Den = 1 ),
      PARAMETER ( HH_AB_Offset_E = 0.08 ),
      PARAMETER ( HH_AB_Div_E = 0.01 ),
    END PARAMETERS
  END GATE_KINETIC
  CHILD "A_11_11" "A_inserted_11"
  END CHILD
  GATE_KINETIC "B_12_12"
    BINDABLES
      INPUT Vm,
      OUTPUT rate,
    END BINDABLES
    BINDINGS
      INPUT ..->Vm,
    END BINDINGS
    PARAMETERS
      PARAMETER ( HH_AB_Add_Num = 7500 ),
      PARAMETER ( HH_AB_Mult = 0 ),
      PARAMETER ( HH_AB_Factor_Flag = -1 ),
      PARAMETER ( HH_AB_Add_Den = 0 ),
      PARAMETER ( HH_AB_Offset_E = -0.003 ),
      PARAMETER ( HH_AB_Div_E = -0.018 ),
    END PARAMETERS
  END GATE_KINETIC
  CHILD "B_12_12" "B_inserted_12"
  END CHILD
  HH_GATE "naf_inactivation_10_10"
    BINDABLES
      INPUT Vm,
      OUTPUT activation,
    END BINDABLES
    BINDINGS
      INPUT ..->Vm,
    END BINDINGS
    PARAMETERS
      PARAMETER ( state_init = 0.263978 ),
      PARAMETER ( POWER = 1 ),
    END PARAMETERS
    CHILD "A_11_11" "A"
    END CHILD
    CHILD "B_12_12" "B"
    END CHILD
  END HH_GATE
  CHILD "naf_inactivation_10_10" "naf_gate_inactivation_prototype_10_14"
  END CHILD
  CHILD "naf_gate_inactivation_prototype_10_14" "naf_gate_inactivation_10_17"
  END CHILD
  CHILD "naf_gate_inactivation_10_17" "naf_gate_inactivation_inserted_17"
  END CHILD
  CHANNEL "NaF_prototype_15_15"
    BINDABLES
      INPUT Vm,
      OUTPUT G,
      OUTPUT I,
    END BINDABLES
    PARAMETERS
      PARAMETER ( G_MAX = 75000 ),
      PARAMETER ( Erev = 0.045 ),
    END PARAMETERS
    CHILD "naf_gate_activation_inserted_16" "naf_gate_activation"
    END CHILD
    CHILD "naf_gate_inactivation_inserted_17" "naf_gate_inactivation"
    END CHILD
  END CHANNEL
  CHILD "NaF_prototype_15_15" "NaF_prototype_inserted_15"
  END CHILD
END PRIVATE_MODELS
PUBLIC_MODELS
  CHILD "NaF_prototype_15_15" "NaF_prototype"
  END CHILD
END PUBLIC_MODELS

4.4. Can we export the channel model to an XML file ?

1. Executed command
export library xml /tmp/1.xml /**
2. Part of expected output
neurospaces

4.5. Does the exported channel XML file contain the correct model ?

1. Part of expected output
application_output_file: /tmp/1.xml
<neurospaces type="ndf"/>

<private_models>
  <GATE_KINETIC> <name>A_6_6</name>
    <bindables>
      <input> <name>Vm</name> </input>
      <output> <name>rate</name> </output>
    </bindables>
    <bindings>
      <input> <name>..->Vm</name> </input>
    </bindings>
    <parameters>
      <parameter> <name>HH_AB_Add_Num</name><value>35000</value> </parameter>
      <parameter> <name>HH_AB_Mult</name><value>0</value> </parameter>
      <parameter> <name>HH_AB_Factor_Flag</name><value>-1</value> </parameter>
      <parameter> <name>HH_AB_Add_Den</name><value>0</value> </parameter>
      <parameter> <name>HH_AB_Offset_E</name><value>0.005</value> </parameter>
      <parameter> <name>HH_AB_Div_E</name><value>-0.01</value> </parameter>
    </parameters>
  </GATE_KINETIC>
  <child> <prototype>A_6_6</prototype> <name>A_inserted_6</name>
  </child>
  <GATE_KINETIC> <name>B_7_7</name>
    <bindables>
      <input> <name>Vm</name> </input>
      <output> <name>rate</name> </output>
    </bindables>
    <bindings>
      <input> <name>..->Vm</name> </input>
    </bindings>
    <parameters>
      <parameter> <name>HH_AB_Add_Num</name><value>7000</value> </parameter>
      <parameter> <name>HH_AB_Mult</name><value>0</value> </parameter>
      <parameter> <name>HH_AB_Factor_Flag</name><value>-1</value> </parameter>
      <parameter> <name>HH_AB_Add_Den</name><value>0</value> </parameter>
      <parameter> <name>HH_AB_Offset_E</name><value>0.065</value> </parameter>
      <parameter> <name>HH_AB_Div_E</name><value>0.02</value> </parameter>
    </parameters>
  </GATE_KINETIC>
  <child> <prototype>B_7_7</prototype> <name>B_inserted_7</name>
  </child>
  <HH_GATE> <name>naf_activation_5_5</name>
    <bindables>
      <input> <name>Vm</name> </input>
      <output> <name>activation</name> </output>
    </bindables>
    <bindings>
      <input> <name>..->Vm</name> </input>
    </bindings>
    <parameters>
      <parameter> <name>state_init</name><value>0.00784064</value> </parameter>
      <parameter> <name>POWER</name><value>3</value> </parameter>
    </parameters>
    <child> <prototype>A_6_6</prototype> <name>A</name>
    </child>
    <child> <prototype>B_7_7</prototype> <name>B</name>
    </child>
  </HH_GATE>
  <child> <prototype>naf_activation_5_5</prototype> <name>naf_gate_activation_prototype_5_13</name>
  </child>
  <child> <prototype>naf_gate_activation_prototype_5_13</prototype> <name>naf_gate_activation_5_16</name>
  </child>
  <child> <prototype>naf_gate_activation_5_16</prototype> <name>naf_gate_activation_inserted_16</name>
  </child>
  <GATE_KINETIC> <name>A_11_11</name>
    <bindables>
      <input> <name>Vm</name> </input>
      <output> <name>rate</name> </output>
    </bindables>
    <bindings>
      <input> <name>..->Vm</name> </input>
    </bindings>
    <parameters>
      <parameter> <name>HH_AB_Add_Num</name><value>225</value> </parameter>
      <parameter> <name>HH_AB_Mult</name><value>0</value> </parameter>
      <parameter> <name>HH_AB_Factor_Flag</name><value>-1</value> </parameter>
      <parameter> <name>HH_AB_Add_Den</name><value>1</value> </parameter>
      <parameter> <name>HH_AB_Offset_E</name><value>0.08</value> </parameter>
      <parameter> <name>HH_AB_Div_E</name><value>0.01</value> </parameter>
    </parameters>
  </GATE_KINETIC>
  <child> <prototype>A_11_11</prototype> <name>A_inserted_11</name>
  </child>
  <GATE_KINETIC> <name>B_12_12</name>
    <bindables>
      <input> <name>Vm</name> </input>
      <output> <name>rate</name> </output>
    </bindables>
    <bindings>
      <input> <name>..->Vm</name> </input>
    </bindings>
    <parameters>
      <parameter> <name>HH_AB_Add_Num</name><value>7500</value> </parameter>
      <parameter> <name>HH_AB_Mult</name><value>0</value> </parameter>
      <parameter> <name>HH_AB_Factor_Flag</name><value>-1</value> </parameter>
      <parameter> <name>HH_AB_Add_Den</name><value>0</value> </parameter>
      <parameter> <name>HH_AB_Offset_E</name><value>-0.003</value> </parameter>
      <parameter> <name>HH_AB_Div_E</name><value>-0.018</value> </parameter>
    </parameters>
  </GATE_KINETIC>
  <child> <prototype>B_12_12</prototype> <name>B_inserted_12</name>
  </child>
  <HH_GATE> <name>naf_inactivation_10_10</name>
    <bindables>
      <input> <name>Vm</name> </input>
      <output> <name>activation</name> </output>
    </bindables>
    <bindings>
      <input> <name>..->Vm</name> </input>
    </bindings>
    <parameters>
      <parameter> <name>state_init</name><value>0.263978</value> </parameter>
      <parameter> <name>POWER</name><value>1</value> </parameter>
    </parameters>
    <child> <prototype>A_11_11</prototype> <name>A</name>
    </child>
    <child> <prototype>B_12_12</prototype> <name>B</name>
    </child>
  </HH_GATE>
  <child> <prototype>naf_inactivation_10_10</prototype> <name>naf_gate_inactivation_prototype_10_14</name>
  </child>
  <child> <prototype>naf_gate_inactivation_prototype_10_14</prototype> <name>naf_gate_inactivation_10_17</name>
  </child>
  <child> <prototype>naf_gate_inactivation_10_17</prototype> <name>naf_gate_inactivation_inserted_17</name>
  </child>
  <CHANNEL> <name>NaF_prototype_15_15</name>
    <bindables>
      <input> <name>Vm</name> </input>
      <output> <name>G</name> </output>
      <output> <name>I</name> </output>
    </bindables>
    <parameters>
      <parameter> <name>G_MAX</name><value>75000</value> </parameter>
      <parameter> <name>Erev</name><value>0.045</value> </parameter>
    </parameters>
    <child> <prototype>naf_gate_activation_inserted_16</prototype> <name>naf_gate_activation</name>
    </child>
    <child> <prototype>naf_gate_inactivation_inserted_17</prototype> <name>naf_gate_inactivation</name>
    </child>
  </CHANNEL>
  <child> <prototype>NaF_prototype_15_15</prototype> <name>NaF_prototype_inserted_15</name>
  </child>
</private_models>
<public_models>
  <child> <prototype>NaF_prototype_15_15</prototype> <name>NaF_prototype</name>
  </child>
</public_models>
2. Comment
xml to html conversion fails when converting this test to html

5. Parsing of the generated channel NDF file

Startup command : ./neurospacesparse -q -v 1 /tmp/1.ndf


5.1. Is neurospaces startup successful ?

1. Part of expected output
./neurospacesparse: No errors for /tmp/1.ndf.

6. Parsing of the generated channel xml file

Startup command : ./neurospacesparse -q -v 1 /tmp/1.xml


6.1. Is neurospaces startup successful ?

1. Part of expected output
./neurospacesparse: No errors for /tmp/1.xml.

7. Export of a channel model

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


7.1. Is neurospaces startup successful ?

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

7.2. Can we export the channel model to an NDF file ?

1. Executed command
export library ndf /tmp/1.ndf /**
2. Part of expected output
neurospaces

7.3. Does the exported channel NDF file contain the correct model (1) ?

1. Part of expected output
application_output_file: /tmp/1.ndf
#!neurospacesparse
// -*- NEUROSPACES -*-

NEUROSPACES NDF

PRIVATE_MODELS
  GATE_KINETIC "A_9_9"
    BINDABLES
      INPUT Vm,
      OUTPUT rate,
    END BINDABLES
    BINDINGS
      INPUT ..->Vm,
    END BINDINGS
    PARAMETERS
      PARAMETER ( HH_AB_Add_Num = 35000 ),
      PARAMETER ( HH_AB_Mult = 0 ),
      PARAMETER ( HH_AB_Factor_Flag = -1 ),
      PARAMETER ( HH_AB_Add_Den = 0 ),
      PARAMETER ( HH_AB_Offset_E = 0.005 ),
      PARAMETER ( HH_AB_Div_E = -0.01 ),
    END PARAMETERS
  END GATE_KINETIC
  CHILD "A_9_9" "A_inserted_9"
  END CHILD
  GATE_KINETIC "B_10_10"
    BINDABLES
      INPUT Vm,
      OUTPUT rate,
    END BINDABLES
    BINDINGS
      INPUT ..->Vm,
    END BINDINGS
    PARAMETERS
      PARAMETER ( HH_AB_Add_Num = 7000 ),
      PARAMETER ( HH_AB_Mult = 0 ),
      PARAMETER ( HH_AB_Factor_Flag = -1 ),
      PARAMETER ( HH_AB_Add_Den = 0 ),
      PARAMETER ( HH_AB_Offset_E = 0.065 ),
      PARAMETER ( HH_AB_Div_E = 0.02 ),
    END PARAMETERS
  END GATE_KINETIC
  CHILD "B_10_10" "B_inserted_10"
  END CHILD
  HH_GATE "naf_activation_8_8"
    BINDABLES
      INPUT Vm,
      OUTPUT activation,
    END BINDABLES
    BINDINGS
      INPUT ..->Vm,
    END BINDINGS
    PARAMETERS
      PARAMETER ( state_init = 0.00784064 ),
      PARAMETER ( POWER = 3 ),
    END PARAMETERS
    CHILD "A_9_9" "A"
    END CHILD
    CHILD "B_10_10" "B"
    END CHILD
  END HH_GATE
  CHILD "naf_activation_8_8" "naf_gate_activation_8_16"
  END CHILD
  CHILD "naf_gate_activation_8_16" "naf_gate_activation_8_19"
  END CHILD
  CHILD "naf_gate_activation_8_19" "naf_gate_activation_inserted_19"
  END CHILD
  GATE_KINETIC "A_14_14"
    BINDABLES
      INPUT Vm,
      OUTPUT rate,
    END BINDABLES
    BINDINGS
      INPUT ..->Vm,
    END BINDINGS
    PARAMETERS
      PARAMETER ( HH_AB_Add_Num = 225 ),
      PARAMETER ( HH_AB_Mult = 0 ),
      PARAMETER ( HH_AB_Factor_Flag = -1 ),
      PARAMETER ( HH_AB_Add_Den = 1 ),
      PARAMETER ( HH_AB_Offset_E = 0.08 ),
      PARAMETER ( HH_AB_Div_E = 0.01 ),
    END PARAMETERS
  END GATE_KINETIC
  CHILD "A_14_14" "A_inserted_14"
  END CHILD
  GATE_KINETIC "B_15_15"
    BINDABLES
      INPUT Vm,
      OUTPUT rate,
    END BINDABLES
    BINDINGS
      INPUT ..->Vm,
    END BINDINGS
    PARAMETERS
      PARAMETER ( HH_AB_Add_Num = 7500 ),
      PARAMETER ( HH_AB_Mult = 0 ),
      PARAMETER ( HH_AB_Factor_Flag = -1 ),
      PARAMETER ( HH_AB_Add_Den = 0 ),
      PARAMETER ( HH_AB_Offset_E = -0.003 ),
      PARAMETER ( HH_AB_Div_E = -0.018 ),
    END PARAMETERS
  END GATE_KINETIC
  CHILD "B_15_15" "B_inserted_15"
  END CHILD
  HH_GATE "naf_inactivation_13_13"
    BINDABLES
      INPUT Vm,
      OUTPUT activation,
    END BINDABLES
    BINDINGS
      INPUT ..->Vm,
    END BINDINGS
    PARAMETERS
      PARAMETER ( state_init = 0.263978 ),
      PARAMETER ( POWER = 1 ),
    END PARAMETERS
    CHILD "A_14_14" "A"
    END CHILD
    CHILD "B_15_15" "B"
    END CHILD
  END HH_GATE
  CHILD "naf_inactivation_13_13" "naf_gate_inactivation_13_17"
  END CHILD
  CHILD "naf_gate_inactivation_13_17" "naf_gate_inactivation_13_20"
  END CHILD
  CHILD "naf_gate_inactivation_13_20" "naf_gate_inactivation_inserted_20"
  END CHILD
  CHANNEL "NaF_prototype_18_18"
    BINDABLES
      INPUT Vm,
      OUTPUT G,
      OUTPUT I,
    END BINDABLES
    PARAMETERS
      PARAMETER ( CHANNEL_TYPE = "ChannelActInact" ),
      PARAMETER ( G_MAX = 75000 ),
      PARAMETER ( Erev = 0.045 ),
    END PARAMETERS
    CHILD "naf_gate_activation_inserted_19" "naf_gate_activation"
    END CHILD
    CHILD "naf_gate_inactivation_inserted_20" "naf_gate_inactivation"
    END CHILD
  END CHANNEL
  CHILD "NaF_prototype_18_18" "NaF_18_22"
    BINDINGS
      INPUT ..->Vm,
    END BINDINGS
  END CHILD
  CHILD "NaF_18_22" "NaF_inserted_22"
  END CHILD
  SEGMENT "soma_prototype_21_21"
    BINDABLES
      OUTPUT Vm,
    END BINDABLES
    BINDINGS
      INPUT NaF->I,
    END BINDINGS
    PARAMETERS
      PARAMETER ( Vm_init = -0.028 ),
      PARAMETER ( RM = 1 ),
      PARAMETER ( RA = 2.5 ),
      PARAMETER ( CM = 0.0164 ),
      PARAMETER ( ELEAK = -0.08 ),
    END PARAMETERS
    CHILD "NaF_inserted_22" "NaF"
    END CHILD
  END SEGMENT
  CHILD "soma_prototype_21_21" "soma_21_25"
    PARAMETERS
      PARAMETER ( rel_X = 0 ),
      PARAMETER ( rel_Y = 0 ),
      PARAMETER ( rel_Z = 0 ),
      PARAMETER ( DIA = 2.98e-05 ),
    END PARAMETERS
  END CHILD
  CHILD "soma_21_25" "soma_inserted_25"
  END CHILD
  SEGMENT_GROUP "segments_24_24"
    CHILD "soma_inserted_25" "soma"
    END CHILD
  END SEGMENT_GROUP
  CHILD "segments_24_24" "segments_inserted_24"
  END CHILD
  CELL "singlea_naf_23_23"
    CHILD "segments_24_24" "segments"
    END CHILD
  END CELL
  CHILD "singlea_naf_23_23" "singlea_naf_inserted_23"
  END CHILD
END PRIVATE_MODELS
PUBLIC_MODELS
  CHILD "singlea_naf_23_23" "singlea_naf"
  END CHILD
END PUBLIC_MODELS

7.4. Can we export the channel model to an XML file ?

1. Executed command
export library xml /tmp/1.xml /**
2. Part of expected output
neurospaces

7.5. Does the exported channel XML file contain the correct model ?

1. Part of expected output
application_output_file: /tmp/1.xml
<neurospaces type="ndf"/>

<private_models>
  <GATE_KINETIC> <name>A_9_9</name>
    <bindables>
      <input> <name>Vm</name> </input>
      <output> <name>rate</name> </output>
    </bindables>
    <bindings>
      <input> <name>..->Vm</name> </input>
    </bindings>
    <parameters>
      <parameter> <name>HH_AB_Add_Num</name><value>35000</value> </parameter>
      <parameter> <name>HH_AB_Mult</name><value>0</value> </parameter>
      <parameter> <name>HH_AB_Factor_Flag</name><value>-1</value> </parameter>
      <parameter> <name>HH_AB_Add_Den</name><value>0</value> </parameter>
      <parameter> <name>HH_AB_Offset_E</name><value>0.005</value> </parameter>
      <parameter> <name>HH_AB_Div_E</name><value>-0.01</value> </parameter>
    </parameters>
  </GATE_KINETIC>
  <child> <prototype>A_9_9</prototype> <name>A_inserted_9</name>
  </child>
  <GATE_KINETIC> <name>B_10_10</name>
    <bindables>
      <input> <name>Vm</name> </input>
      <output> <name>rate</name> </output>
    </bindables>
    <bindings>
      <input> <name>..->Vm</name> </input>
    </bindings>
    <parameters>
      <parameter> <name>HH_AB_Add_Num</name><value>7000</value> </parameter>
      <parameter> <name>HH_AB_Mult</name><value>0</value> </parameter>
      <parameter> <name>HH_AB_Factor_Flag</name><value>-1</value> </parameter>
      <parameter> <name>HH_AB_Add_Den</name><value>0</value> </parameter>
      <parameter> <name>HH_AB_Offset_E</name><value>0.065</value> </parameter>
      <parameter> <name>HH_AB_Div_E</name><value>0.02</value> </parameter>
    </parameters>
  </GATE_KINETIC>
  <child> <prototype>B_10_10</prototype> <name>B_inserted_10</name>
  </child>
  <HH_GATE> <name>naf_activation_8_8</name>
    <bindables>
      <input> <name>Vm</name> </input>
      <output> <name>activation</name> </output>
    </bindables>
    <bindings>
      <input> <name>..->Vm</name> </input>
    </bindings>
    <parameters>
      <parameter> <name>state_init</name><value>0.00784064</value> </parameter>
      <parameter> <name>POWER</name><value>3</value> </parameter>
    </parameters>
    <child> <prototype>A_9_9</prototype> <name>A</name>
    </child>
    <child> <prototype>B_10_10</prototype> <name>B</name>
    </child>
  </HH_GATE>
  <child> <prototype>naf_activation_8_8</prototype> <name>naf_gate_activation_8_16</name>
  </child>
  <child> <prototype>naf_gate_activation_8_16</prototype> <name>naf_gate_activation_8_19</name>
  </child>
  <child> <prototype>naf_gate_activation_8_19</prototype> <name>naf_gate_activation_inserted_19</name>
  </child>
  <GATE_KINETIC> <name>A_14_14</name>
    <bindables>
      <input> <name>Vm</name> </input>
      <output> <name>rate</name> </output>
    </bindables>
    <bindings>
      <input> <name>..->Vm</name> </input>
    </bindings>
    <parameters>
      <parameter> <name>HH_AB_Add_Num</name><value>225</value> </parameter>
      <parameter> <name>HH_AB_Mult</name><value>0</value> </parameter>
      <parameter> <name>HH_AB_Factor_Flag</name><value>-1</value> </parameter>
      <parameter> <name>HH_AB_Add_Den</name><value>1</value> </parameter>
      <parameter> <name>HH_AB_Offset_E</name><value>0.08</value> </parameter>
      <parameter> <name>HH_AB_Div_E</name><value>0.01</value> </parameter>
    </parameters>
  </GATE_KINETIC>
  <child> <prototype>A_14_14</prototype> <name>A_inserted_14</name>
  </child>
  <GATE_KINETIC> <name>B_15_15</name>
    <bindables>
      <input> <name>Vm</name> </input>
      <output> <name>rate</name> </output>
    </bindables>
    <bindings>
      <input> <name>..->Vm</name> </input>
    </bindings>
    <parameters>
      <parameter> <name>HH_AB_Add_Num</name><value>7500</value> </parameter>
      <parameter> <name>HH_AB_Mult</name><value>0</value> </parameter>
      <parameter> <name>HH_AB_Factor_Flag</name><value>-1</value> </parameter>
      <parameter> <name>HH_AB_Add_Den</name><value>0</value> </parameter>
      <parameter> <name>HH_AB_Offset_E</name><value>-0.003</value> </parameter>
      <parameter> <name>HH_AB_Div_E</name><value>-0.018</value> </parameter>
    </parameters>
  </GATE_KINETIC>
  <child> <prototype>B_15_15</prototype> <name>B_inserted_15</name>
  </child>
  <HH_GATE> <name>naf_inactivation_13_13</name>
    <bindables>
      <input> <name>Vm</name> </input>
      <output> <name>activation</name> </output>
    </bindables>
    <bindings>
      <input> <name>..->Vm</name> </input>
    </bindings>
    <parameters>
      <parameter> <name>state_init</name><value>0.263978</value> </parameter>
      <parameter> <name>POWER</name><value>1</value> </parameter>
    </parameters>
    <child> <prototype>A_14_14</prototype> <name>A</name>
    </child>
    <child> <prototype>B_15_15</prototype> <name>B</name>
    </child>
  </HH_GATE>
  <child> <prototype>naf_inactivation_13_13</prototype> <name>naf_gate_inactivation_13_17</name>
  </child>
  <child> <prototype>naf_gate_inactivation_13_17</prototype> <name>naf_gate_inactivation_13_20</name>
  </child>
  <child> <prototype>naf_gate_inactivation_13_20</prototype> <name>naf_gate_inactivation_inserted_20</name>
  </child>
  <CHANNEL> <name>NaF_prototype_18_18</name>
    <bindables>
      <input> <name>Vm</name> </input>
      <output> <name>G</name> </output>
      <output> <name>I</name> </output>
    </bindables>
    <parameters>
      <parameter> <name>CHANNEL_TYPE</name><string>ChannelActInact</string> </parameter>
      <parameter> <name>G_MAX</name><value>75000</value> </parameter>
      <parameter> <name>Erev</name><value>0.045</value> </parameter>
    </parameters>
    <child> <prototype>naf_gate_activation_inserted_19</prototype> <name>naf_gate_activation</name>
    </child>
    <child> <prototype>naf_gate_inactivation_inserted_20</prototype> <name>naf_gate_inactivation</name>
    </child>
  </CHANNEL>
  <child> <prototype>NaF_prototype_18_18</prototype> <name>NaF_18_22</name>
    <bindings>
      <input> <name>..->Vm</name> </input>
    </bindings>
  </child>
  <child> <prototype>NaF_18_22</prototype> <name>NaF_inserted_22</name>
  </child>
  <SEGMENT> <name>soma_prototype_21_21</name>
    <bindables>
      <output> <name>Vm</name> </output>
    </bindables>
    <bindings>
      <input> <name>NaF->I</name> </input>
    </bindings>
    <parameters>
      <parameter> <name>Vm_init</name><value>-0.028</value> </parameter>
      <parameter> <name>RM</name><value>1</value> </parameter>
      <parameter> <name>RA</name><value>2.5</value> </parameter>
      <parameter> <name>CM</name><value>0.0164</value> </parameter>
      <parameter> <name>ELEAK</name><value>-0.08</value> </parameter>
    </parameters>
    <child> <prototype>NaF_inserted_22</prototype> <name>NaF</name>
    </child>
  </SEGMENT>
  <child> <prototype>soma_prototype_21_21</prototype> <name>soma_21_25</name>
    <parameters>
      <parameter> <name>rel_X</name><value>0</value> </parameter>
      <parameter> <name>rel_Y</name><value>0</value> </parameter>
      <parameter> <name>rel_Z</name><value>0</value> </parameter>
      <parameter> <name>DIA</name><value>2.98e-05</value> </parameter>
    </parameters>
  </child>
  <child> <prototype>soma_21_25</prototype> <name>soma_inserted_25</name>
  </child>
  <SEGMENT_GROUP> <name>segments_24_24</name>
    <child> <prototype>soma_inserted_25</prototype> <name>soma</name>
    </child>
  </SEGMENT_GROUP>
  <child> <prototype>segments_24_24</prototype> <name>segments_inserted_24</name>
  </child>
  <CELL> <name>singlea_naf_23_23</name>
    <child> <prototype>segments_24_24</prototype> <name>segments</name>
    </child>
  </CELL>
  <child> <prototype>singlea_naf_23_23</prototype> <name>singlea_naf_inserted_23</name>
  </child>
</private_models>
<public_models>
  <child> <prototype>singlea_naf_23_23</prototype> <name>singlea_naf</name>
  </child>
</public_models>
2. Comment
xml to html conversion fails when converting this test to html

8. Parsing of the generated cell NDF file

Startup command : ./neurospacesparse -q -v 1 /tmp/1.ndf


8.1. Is neurospaces startup successful ?

1. Part of expected output
./neurospacesparse: No errors for /tmp/1.ndf.

9. Parsing of the generated cell xml file

Startup command : ./neurospacesparse -q -v 1 /tmp/1.xml


9.1. Is neurospaces startup successful ?

1. Part of expected output
./neurospacesparse: No errors for /tmp/1.xml.

10. Export of gates/naf_activation.ndf before reading it back

Startup command : ./neurospacesparse -q -v 1 gates/naf_activation.ndf


10.1. Is neurospaces startup successful ?

1. Part of expected output
./neurospacesparse: No errors for .+?/gates/naf_activation.ndf.

10.2. Can we export the model as NDF ?

1. Executed command
export library ndf /tmp/1.ndf /**
2. Part of expected output

10.3. Can we export the model as xml ?

1. Executed command
export library xml /tmp/1.xml /**
2. Part of expected output


11. Reading of gates/naf_activation.ndf after exporting it

Startup command : ./neurospacesparse -q -v 1 /tmp/1.ndf


11.1. Is neurospaces startup successful ?

1. Part of expected output
./neurospacesparse: No errors for /tmp/1.ndf.

12. Reading of gates/naf_activation.ndf after exporting it

Startup command : ./neurospacesparse -q -v 1 /tmp/1.xml


12.1. Is neurospaces startup successful ?

1. Part of expected output
./neurospacesparse: No errors for /tmp/1.xml.

13. Export of tests/channels/naf.ndf before reading it back

Startup command : ./neurospacesparse -q -v 1 tests/channels/naf.ndf


13.1. Is neurospaces startup successful ?

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

13.2. Can we export the model as NDF ?

1. Executed command
export library ndf /tmp/1.ndf /**
2. Part of expected output

13.3. Can we export the model as xml ?

1. Executed command
export library xml /tmp/1.xml /**
2. Part of expected output


14. Reading of tests/channels/naf.ndf after exporting it

Startup command : ./neurospacesparse -q -v 1 /tmp/1.ndf


14.1. Is neurospaces startup successful ?

1. Part of expected output
./neurospacesparse: No errors for /tmp/1.ndf.

15. Reading of tests/channels/naf.ndf after exporting it

Startup command : ./neurospacesparse -q -v 1 /tmp/1.xml


15.1. Is neurospaces startup successful ?

1. Part of expected output
./neurospacesparse: No errors for /tmp/1.xml.

16. Export of tests/cells/singlea_naf.ndf before reading it back

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


16.1. Is neurospaces startup successful ?

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

16.2. Can we export the model as NDF ?

1. Executed command
export library ndf /tmp/1.ndf /**
2. Part of expected output

16.3. Can we export the model as xml ?

1. Executed command
export library xml /tmp/1.xml /**
2. Part of expected output


17. Reading of tests/cells/singlea_naf.ndf after exporting it

Startup command : ./neurospacesparse -q -v 1 /tmp/1.ndf


17.1. Is neurospaces startup successful ?

1. Part of expected output
./neurospacesparse: No errors for /tmp/1.ndf.

18. Reading of tests/cells/singlea_naf.ndf after exporting it

Startup command : ./neurospacesparse -q -v 1 /tmp/1.xml


18.1. Is neurospaces startup successful ?

1. Part of expected output
./neurospacesparse: No errors for /tmp/1.xml.