e_model_packager.nwb.create_nwb¶
Script to create an nwb file given stimuli and responses.
Functions
|
Creates and NWB object from the given stimuli/responses. |
|
Interpolate voltage to new dt. |
|
Writes nwb to the output_path. |
- create_nwb(emodel_name, protocol_responses, file_description)¶
Creates and NWB object from the given stimuli/responses.
- Parameters:
emodel_name (str) – name of the emodel
protocol_responses (list of namedtuple) – with fields: name, voltage, current
file_description (str) – description string to be added to the file
- Returns:
the resulting NWB file
- Return type:
pynwb.file.NWBFile
- interpolate(time, voltage, new_dt)¶
Interpolate voltage to new dt.
- write_nwb(nwbfile, output_path)¶
Writes nwb to the output_path.