def lut_masks_one(neigh):
    '\n    Create a LUT index mask for which the specified neighbour is 1\n    :param neigh: neighbour index; counter-clockwise from 1 staring at the eastern neighbour\n    :return: a LUT index mask\n    '
    if (neigh > 8):
        neigh -= 8
    return ((_LUT_INDS & MASKS[neigh]) != 0)
Create a LUT index mask for which the specified neighbour is 1
:param neigh: neighbour index; counter-clockwise from 1 staring at the eastern neighbour
:return: a LUT index mask
def lut_masks_one(neigh):
    '\n    Create a LUT index mask for which the specified neighbour is 1\n    :param neigh: neighbour index; counter-clockwise from 1 staring at the eastern neighbour\n    :return: a LUT index mask\n    '
    if (neigh > 8):
        neigh -= 8
    return ((_LUT_INDS & MASKS[neigh]) != 0)