arboretum/layers/tracks/_track_utils.py
def check_track_dimensionality(data: list):
    """ check the dimensionality of the data

    TODO(arl): we could allow a mix of 2D/3D etc...
    """
    assert all([isinstance(d, np.ndarray) for d in data])
    assert all([d.shape[1] == data[0].shape[1] for d in data])
    return data[0].shape[1]
 check the dimensionality of the data

    TODO(arl): we could allow a mix of 2D/3D etc...
    
check the dimensionality of the data
TODO(arl): we could allow a mix of 2D/3D etc
check the dimensionality of the data TODO ( arl ) : we could allow a mix of 2D / 3D etc
def check_track_dimensionality(data: list):
    assert all([isinstance(d, np.ndarray) for d in data])
    assert all([d.shape[1] == data[0].shape[1] for d in data])
    return data[0].shape[1]
def check_track_dimensionality ( data : list ) : assert all ( [ isinstance ( d , np . ndarray ) for d in data ] ) assert all ( [ d . shape [ 1 ] == data [ 0 ] . shape [ 1 ] for d in data ] ) return data [ 0 ] . shape [ 1 ]
check the dimensionality of the data
TODO(arl): we could allow a mix of 2D/3D etc...
check the dimensionality of the data TODO ( arl ) : we could allow a mix of 2D / 3D etc ...
""" check the dimensionality of the data

    TODO(arl): we could allow a mix of 2D/3D etc...
    """
data
list