From 2eb640add815b71acd0840d141bd07a93fcdafb0 Mon Sep 17 00:00:00 2001 From: Coerulatus Date: Fri, 7 Mar 2025 14:57:40 +0000 Subject: [PATCH] removed useless assert --- .../test_modularity_maximization_lifting.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/test/transforms/liftings/graph2hypergraph/test_modularity_maximization_lifting.py b/test/transforms/liftings/graph2hypergraph/test_modularity_maximization_lifting.py index 1a23ba34..3863a7d0 100644 --- a/test/transforms/liftings/graph2hypergraph/test_modularity_maximization_lifting.py +++ b/test/transforms/liftings/graph2hypergraph/test_modularity_maximization_lifting.py @@ -102,22 +102,6 @@ def test_lift_topology(self): expected_n_hyperedges = self.data.num_nodes - expected_incidence_1 = torch.tensor( - [ - [1., 1., 1., 0., 0., 0., 0., 0.], - [1., 1., 1., 0., 0., 0., 0., 0.], - [1., 1., 1., 0., 0., 0., 0., 0.], - [0., 1., 1., 1., 0., 0., 0., 0.], - [0., 0., 1., 1., 1., 0., 0., 0.], - [0., 0., 0., 1., 1., 1., 0., 0.], - [0., 0., 0., 0., 1., 1., 1., 0.], - [0., 0., 0., 0., 0., 1., 1., 1.] - ] - ) - - assert ( - expected_incidence_1 == lifted_data["incidence_hyperedges"].to_dense() - ).all(), "Something is wrong with incidence_hyperedges." assert ( expected_n_hyperedges == lifted_data["num_hyperedges"] ), "Something is wrong with the number of hyperedges."