visualization_2D_view.py
create_static_track_animation(*, track_rect_width, track_rect_height, ul_corners, timestamps, positions, compute_real_time_rate=False, head_dir=None)
¶
Create a static track animation object.
Source code in src/spyglass/decoding/v0/visualization_2D_view.py
get_base_track_information(base_probabilities)
¶
Get the base track information.
Source code in src/spyglass/decoding/v0/visualization_2D_view.py
memo_linearize(t, /, location_lookup, x_count, x_min, x_width, y_min, y_width)
¶
Memoized linearize function.
Source code in src/spyglass/decoding/v0/visualization_2D_view.py
generate_linearization_function(location_lookup, x_count, x_min, x_width, y_min, y_width)
¶
Generate a linearization function.
Source code in src/spyglass/decoding/v0/visualization_2D_view.py
get_positions(i_trim, linearization_fn)
¶
Get the positions from a linearization func.
Source code in src/spyglass/decoding/v0/visualization_2D_view.py
get_observations_per_frame(i_trim, base_slice)
¶
Get the observations per frame.
Source code in src/spyglass/decoding/v0/visualization_2D_view.py
extract_slice_data(base_slice, location_fn)
¶
Extract slice data from a location function.
Source code in src/spyglass/decoding/v0/visualization_2D_view.py
process_decoded_data(posterior)
¶
Process the decoded data.
Source code in src/spyglass/decoding/v0/visualization_2D_view.py
create_track_animation_object(*, static_track_animation)
¶
Create a track animation object.
Source code in src/spyglass/decoding/v0/visualization_2D_view.py
get_ul_corners(width, height, centers)
¶
Get the upper left corners.
create_2D_decode_view(position_time, position, interior_place_bin_centers, place_bin_size, posterior, head_dir=None)
¶
Creates a 2D decoding movie view
Parameters:
Name | Type | Description | Default |
---|---|---|---|
position_time |
(ndarray, shape(n_time))
|
|
required |
position |
(ndarray, shape(n_time, 2))
|
|
required |
interior_place_bin_centers |
ndarray
|
|
required |
place_bin_size |
(ndarray, shape(2, 1))
|
|
required |
posterior |
(DataArray, shape(n_time, n_position_bins))
|
|
required |
head_dir |
ndarray
|
|
None
|
Returns:
Name | Type | Description |
---|---|---|
view |
TrackPositionAnimationV1
|
|