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

Index of group ./specifications/xml


Index
Up

importing and processing of a model encoded in xml

1. Import and export of a model in xml

1. Import and export of a model in xml

Startup command : bin/genesis-g3

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

1.1. Is startup successful ?

1. Expected output
Welcome to the GENESIS 3 shell

1.2. Can we load a xml model ?

1. Executed command
xml_load channels/gaba.xml
2. Expected output
genesis

1.3. Can we export the model to an NDF file ?

1. Executed command
ndf_save /** /tmp/1.ndf
2. Expected output
genesis

1.4. Does the exported NDF file contain the correct model ?

1. Expected output
application_output_file: /tmp/1.ndf
#!neurospacesparse
// -*- NEUROSPACES -*-

NEUROSPACES NDF

PRIVATE_MODELS
  ATTACHMENT "Synapse_7_7"
    BINDABLES
      INPUT spike,
      OUTPUT activation,
    END BINDABLES
    ATTRIBUTES       weight,       delay, END ATTRIBUTES
  END ATTACHMENT
  CHILD "Synapse_7_7" "Synapse_7_8"
  END CHILD
  CHILD "Synapse_7_8" "synapse_7_10"
  END CHILD
  CHILD "synapse_7_10" "synapse_inserted_10"
  END CHILD
  EQUATION_EXPONENTIAL "exp2_11_11"
    BINDABLES
      INPUT activation,
      OUTPUT G,
    END BINDABLES
    BINDINGS
      INPUT ../synapse->activation,
    END BINDINGS
    PARAMETERS
      PARAMETER ( TAU1 = 0.00093 ),
      PARAMETER ( TAU2 = 0.0265 ),
    END PARAMETERS
  END EQUATION_EXPONENTIAL
  CHILD "exp2_11_11" "exp2_inserted_11"
  END CHILD
  CHANNEL "Purk_GABA_9_9"
    BINDABLES
      INPUT Vm,
      OUTPUT I,
    END BINDABLES
    PARAMETERS
      PARAMETER ( G_MAX = 1.077 ),
      PARAMETER ( Erev = -0.08 ),
    END PARAMETERS
    CHILD "synapse_inserted_10" "synapse"
    END CHILD
    CHILD "exp2_11_11" "exp2"
    END CHILD
  END CHANNEL
  CHILD "Purk_GABA_9_9" "Purk_GABA_inserted_9"
  END CHILD
END PRIVATE_MODELS
PUBLIC_MODELS
  CHILD "Purk_GABA_9_9" "Purk_GABA"
  END CHILD
END PUBLIC_MODELS

1.5. Can we export the model to an XML file ?

1. Executed command
xml_save /** /tmp/1.xml
2. Expected output
genesis

1.6. Does the exported XML file contain the correct model ?

1. Expected output
application_output_file: /tmp/1.xml
<neurospaces type="ndf"/>

<private_models>
  <ATTACHMENT> <name>Synapse_7_7</name>
    <bindables>
      <input> <name>spike</name> </input>
      <output> <name>activation</name> </output>
    </bindables>
    <attributes>       <name>weight</name>       <name>delay</name> </attributes>
  </ATTACHMENT>
  <child> <prototype>Synapse_7_7</prototype> <name>Synapse_7_8</name>
  </child>
  <child> <prototype>Synapse_7_8</prototype> <name>synapse_7_10</name>
  </child>
  <child> <prototype>synapse_7_10</prototype> <name>synapse_inserted_10</name>
  </child>
  <EQUATION_EXPONENTIAL> <name>exp2_11_11</name>
    <bindables>
      <input> <name>activation</name> </input>
      <output> <name>G</name> </output>
    </bindables>
    <bindings>
      <input> <name>../synapse->activation</name> </input>
    </bindings>
    <parameters>
      <parameter> <name>TAU1</name><value>0.00093</value> </parameter>
      <parameter> <name>TAU2</name><value>0.0265</value> </parameter>
    </parameters>
  </EQUATION_EXPONENTIAL>
  <child> <prototype>exp2_11_11</prototype> <name>exp2_inserted_11</name>
  </child>
  <CHANNEL> <name>Purk_GABA_9_9</name>
    <bindables>
      <input> <name>Vm</name> </input>
      <output> <name>I</name> </output>
    </bindables>
    <parameters>
      <parameter> <name>G_MAX</name><value>1.077</value> </parameter>
      <parameter> <name>Erev</name><value>-0.08</value> </parameter>
    </parameters>
    <child> <prototype>synapse_inserted_10</prototype> <name>synapse</name>
    </child>
    <child> <prototype>exp2_11_11</prototype> <name>exp2</name>
    </child>
  </CHANNEL>
  <child> <prototype>Purk_GABA_9_9</prototype> <name>Purk_GABA_inserted_9</name>
  </child>
</private_models>
<public_models>
  <child> <prototype>Purk_GABA_9_9</prototype> <name>Purk_GABA</name>
  </child>
</public_models>
2. Comment
xml to html conversion fails when converting this test to html