visualization_1D_view.py
get_observations_per_time(trimmed_posterior, base_data)
¶
Get the number of observations per time bin.
Source code in src/spyglass/decoding/v0/visualization_1D_view.py
get_sampling_freq(times)
¶
Get the sampling frequency of the data.
Source code in src/spyglass/decoding/v0/visualization_1D_view.py
get_trimmed_bin_center_index(place_bin_centers, trimmed_place_bin_centers)
¶
Get the index of the trimmed bin centers in the full array.
Source code in src/spyglass/decoding/v0/visualization_1D_view.py
create_1D_decode_view(posterior, linear_position=None, ref_time_sec=None)
¶
Creates a view of an interactive heatmap of position vs. time.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
posterior |
(DataArray, shape(n_time, n_position_bins))
|
|
required |
linear_position |
(ndarray, shape(n_time))
|
|
None
|
ref_time_sec |
float64
|
Reference time for the purpose of offsetting the start time |
None
|
Returns:
Name | Type | Description |
---|---|---|
view |
DecodedLinearPositionData
|
|