How to use the persim.PersImage.to_landscape function in persim

To help you get started, we’ve selected a few persim examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github scikit-tda / persim / test / test_persim.py View on Github external
def test_landscape():
    bds = np.array([[1, 1], [1, 2]])

    ldsp = PersImage.to_landscape(bds)

    np.testing.assert_array_equal(ldsp, [[1, 0], [1, 1]])