module documentation
Spikeogram generator functions
Function | spikeogram_2 |
Generates a 2D spikeogram from the .mat-file. |
Function | spikeogram_3 |
Generates a 3D spikeogram from the .mat-file. |
Generates a 2D spikeogram from the .mat-file.
Parameters | |
data:h5py.File | the open .mat-file object |
datastr | the datafield to use, e.g. 'an_out_sum' |
binfloat | binwidth for downsampling, 1e-3 (1 ms) |
dtype | datatype, default is 'float32' |
Returns | |
torch.Tensor | tensor with 2 dimensions, i.e. [frequency, time] |
Raises | |
ValueError | when <h5py.File>.Get() fails and return None |
Generates a 3D spikeogram from the .mat-file.
Parameters | |
data:h5py.File | the open .mat-file object |
dataList[ | the datafields to use. Default is ['an_out_hs', 'an_out_ms', 'an_out_ls'] |
binfloat | binwidth for downsampling. Default is 1e-3 (1 ms) |
dtype | datatype. Default is 'float32' |
Returns | |
torch.Tensor | tensor with 3 dimensions, i.e. [channels, frequency, time] |
Raises | |
ValueError | when <h5py.File>.Get() fails and return None |