spiketools.utils.data.make_orientation¶
- spiketools.utils.data.make_orientation(arr, to_orientation, from_orientation=None)[source]¶
Check and make sure a 2d array is in a specified orientation.
- Parameters:
- arr2d array
Array to check orientation.
- to_orientation{‘row’, ‘column’}
The desired orientation of the output data. If the input is not already in this orientation, is transposed.
- from_orientation{‘row’, ‘column’}, optional
The orientation of the input array. If not provided, is inferred from the input data.
- Returns:
- arr2d array
2d array in specified orientation.