subclass_prs_dict = exp_prs_dict[tf_str] spont_fr = subclass_prs_dict['spont_exp'][0] # Get filters transfer_function = ScalarTransferFunction( 'Heaviside(s+{})*(s+{})'.format(spont_fr, spont_fr)) temporal_filter = TemporalFilterCosineBump(t_weights, t_kpeaks, t_delays) if cell_type.find('ON') >= 0: amplitude = 1.0 linear_filter = SpatioTemporalFilter(spatial_filter, temporal_filter, amplitude=amplitude) cell = OnUnit(linear_filter, transfer_function) elif cell_type.find('OFF') >= 0: amplitude = -1.0 linear_filter = SpatioTemporalFilter(spatial_filter, temporal_filter, amplitude=amplitude) cell = OffUnit(linear_filter, transfer_function) return cell py_modules.add_cell_processor('default', default_cell_loader, overwrite=False) py_modules.add_cell_processor('preset_params', default_cell_loader, overwrite=False)
def set_default_processing(self, processing_fnc): py_modules.add_cell_processor('default', processing_fnc)