def test_truncation_07(self): a = POD(method='svd', rank=0.8) a.fit(snapshots) assert a.singular_values.shape[0] == 1
def test_truncation_05(self): a = POD(method='randomized_svd', rank=3) a.fit(snapshots) assert a.singular_values.shape[0] == 3
def test_truncation_06(self): a = POD(method='correlation_matrix', rank=4) a.fit(snapshots) assert a.singular_values.shape[0] == 4
def test_modes(self): a = POD('svd') a.fit(snapshots) np.testing.assert_allclose(a.modes, modes)