def atleast(arr, ndim=4):
    while arr.ndim < ndim:
        arr = arr[np.newaxis,...]
    return arr
do a 2d projection onto an image xy plane of 3d triangles
dataset/ETHPy150Open bbabenko/simple_convnet/simple_convnet/helpers.py/atleast--crossover with--dataset/ETHPy150Open mkenworthy/exorings/starspot/starspot.py/fillstar2d