neuroarch.na.NeuroArch.create_model_from_circuit

NeuroArch.create_model_from_circuit(model_name, model_version, graph, circuit_diagrams=None, submodules=None)[source]

Create a model of a circuit.

Parameters:
  • model_name (str) – The name of the model.

  • model_version (str) – The version of the model.

  • graph (networkx.DiGraph or dict.) – A graph specifying the models of the circuit. The graph should contain both BioNodes, e.g., Neurons, Synapses, and DesignNodes, e.g., NeuronModels, SynapseModels, linked with a ‘models’ relationship.

  • circuit_diagrams (dict (optional)) – A dict of str specifying the diagram in SVG format.

  • js (dict (optional)) – A dict of str specifying the javascript submodules for interactivity.

Returns:

A dictionary mapping the original id of model nodes to the rid of the record created.

Return type:

dict