single_cell_parserserialize_cell

serialize_cell

Convert a Cell object to a serializable object and vice versa.

Functions

convert_hoc_array_to_np_array(hoc_array)

Convert hoc array to list of lists

convert_dict_of_hoc_arrays_to_dict_of_np_arrays(hoc_array_dict)

Convert dictionary of hoc arrays to dictionary of list of lists

cell_to_serializable_object(cell)

Convert a Cell object to a dict, so that it can be serialized.

restore_cell_from_serializable_object(sc)

Restore a Cell object from a serializable object.

save_cell_to_file(path, cell)

Save a Cell object to a file in .pickle format.

load_cell_from_file(path)

Load a Cell object from a file in .pickle format.