emodelrunner.output

Functions to write output.

Functions

write_current(currents, output_dir)

Write currents into separate files.

write_responses(responses, output_dir)

Write each response in a file.

write_synplas_output(responses, pre_spike_train)

Write output as h5.

write_synplas_precell_output(responses, ...)

Write precell output as h5.

emodelrunner.output.write_current(currents, output_dir)[source]

Write currents into separate files.

Parameters:
  • currents (dict) – time and trace to each recording Should have structure “key”: {“time”: time, “current”: current}

  • output_dir (str) – path to the output repository

emodelrunner.output.write_responses(responses, output_dir)[source]

Write each response in a file.

Parameters:
  • responses (dict) – time and recorded value of each recording Should have structure “key”: {“time”: time, “voltage”: response} Note that all response have a “voltage” field, even if the recorded value was not the voltage

  • output_dir (str) – path to the output repository

emodelrunner.output.write_synplas_output(responses, pre_spike_train, output_path='./output.h5', syn_prop_path='synapses/synapse_properties.json')[source]

Write output as h5.

Parameters:
  • responses (dict) – responses of the postsynaptic cell

  • pre_spike_train (list) – times at which the synapses fire (ms)

  • output_path (str) – path to the (postsynaptic data) output file

  • syn_prop_path (str) – path to the synapse properties file

emodelrunner.output.write_synplas_precell_output(responses, protocol_name, precell_output_path='./output_precell.h5')[source]

Write precell output as h5.

Parameters:
  • responses (dict) – responses of the presynaptic cell

  • protocol_name (str) – name of the presynaptic protocol

  • precell_output_path (str) – path to the presynaptic data output file