spiketools.spatial.utils.get_position_xy¶
- spiketools.spatial.utils.get_position_xy(position, orientation=None)[source]¶
Get the x & y data vectors from a 2d position data array.
- Parameters:
- position2d array
Position values.
- orientation{‘row’, ‘column’}, optional
The orientation of the position data. If not provided, is inferred from the given data.
- Returns:
- x_data, y_data1d array
Extracted X & Y position data.