data_base ❭ db_initializers ❭ prepare_ANN_batches ❭ save_SA_batch
save_SA_batch¶
-
data_base.db_initializers.prepare_ANN_batches.save_SA_batch(sa_, selected_stis, batch_id, outdir=
None, section_distances_df=None, spatial_bin_names=None, min_time=0, max_time=600, bin_size=1, synaptic_weight_dict=None)¶ Save a batch of synapse activation times to a file.
- Parameters:¶
sa_ (pd.DataFrame) – Augmented synapse activation dataframe
selected_stis (list) – List of selected spike times
batch_id (int) – Batch id
outdir (str) – Output directory
section_distances_df (pd.DataFrame, optional) – DataFrame representing each section’s spatial bins and binsizes. Defaults to None.
spatial_bin_names (list, optional) – List of spatial bin names. Defaults to None.
min_time (int, optional) – Min time in ms. Defaults to 0.
max_time (int, optional) – Max time in ms. Defaults to 600.
bin_size (int, optional) – Size of the time bins. Defaults to 1.
- Returns:¶
A dask delayed object. When computed, saves the synapse activation times to
outdir/batch_:paramref:batch_id_SYNAPSE_ACTIVATION.npy.- Return type:¶
dask.delayed