def _compare_render(orig_data, rendered_data, previous_render=None, atol=1):
    predicted = _make_rgba(orig_data)
    np.testing.assert_allclose(rendered_data.astype(float), predicted.astype(float), atol=atol)
    if (previous_render is not None):
        pytest.raises(AssertionError, np.testing.assert_allclose, rendered_data, previous_render, atol=10)
def _compare_render(orig_data, rendered_data, previous_render=None, atol=1):
    predicted = _make_rgba(orig_data)
    np.testing.assert_allclose(rendered_data.astype(float), predicted.astype(float), atol=atol)
    if (previous_render is not None):
        pytest.raises(AssertionError, np.testing.assert_allclose, rendered_data, previous_render, atol=10)