allensdk.internal.model.data_access module

allensdk.internal.model.data_access.load_sweep(file_name, sweep_number, desired_dt=None, cut=0, bessel=False)[source]

load a data sweep and do specified data processing. Inputs:

file_name: string

name of .nwb data file

sweep_number:

number specifying the sweep to be loaded

desired_dt:

the size of the time step the data should be subsampled to

cut:

indicie of which to start reporting data (i.e. cut off data before this indicie)

bessel: dictionary

contains parameters ‘N’ and ‘Wn’ to implement standard python bessel filtering

Returns:
dictionary containing

voltage: array current: array dt: time step of the returned data start_idx: the index at which the first stimulus starts (excluding the test pulse)

allensdk.internal.model.data_access.load_sweeps(file_name, sweep_numbers, dt=None, cut=0, bessel=False)[source]

load sweeps and do specified data processing. Inputs:

file_name: string

name of .nwb data file

sweep_numbers:

sweep numbers to be loaded

desired_dt:

the size of the time step the data should be subsampled to

cut:

indicie of which to start reporting data (i.e. cut off data before this indicie)

bessel: dictionary

contains parameters ‘N’ and ‘Wn’ to implement standard python bessel filtering

Returns:
dictionary containing

voltage: list of voltage trace arrays current: list of current trace arrays dt: list of time step corresponding to each array of the returned data start_idx: list of the indicies at which the first stimulus starts (excluding

the test pulse) in each returned sweep

allensdk.internal.model.data_access.subsample_data(data, method, present_time_step, desired_time_step)[source]