def get_transform(cell_ref, precision=1e-4):
    """
    Get the transform from a cell-instance as a hashable object
    """
    if cell_ref.rotation is None:
        cell_ref.rotation = 0
    return (
        int(cell_ref.origin[0] / precision),
        int(cell_ref.origin[1] / precision),
        int(cell_ref.rotation) % 360,
        cell_ref.x_reflection,
    )