diff --git a/src/graphnet/models/graphs/edges/edges.py b/src/graphnet/models/graphs/edges/edges.py index 28507058b..9f7844375 100644 --- a/src/graphnet/models/graphs/edges/edges.py +++ b/src/graphnet/models/graphs/edges/edges.py @@ -27,7 +27,7 @@ def forward(self, graph: Data) -> Data: graph: a graph with edges """ if graph.edge_index is not None: - self.warnonce( + self.warning_once( "GraphBuilder received graph with pre-existing " "structure. Will overwrite." )