diff --git a/_modules/graphnet/models/graphs/edges/edges.html b/_modules/graphnet/models/graphs/edges/edges.html
index 294002b15..399251ee4 100644
--- a/_modules/graphnet/models/graphs/edges/edges.html
+++ b/_modules/graphnet/models/graphs/edges/edges.html
@@ -354,7 +354,7 @@
Source code for g
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."
)
diff --git a/_modules/graphnet/models/graphs/graph_definition.html b/_modules/graphnet/models/graphs/graph_definition.html
index 71dac0f62..3841cc045 100644
--- a/_modules/graphnet/models/graphs/graph_definition.html
+++ b/_modules/graphnet/models/graphs/graph_definition.html
@@ -476,7 +476,8 @@ Source code
if self._edge_definition is not None:
graph = self._edge_definition(graph)
else:
- self.warnonce(
+
+ self.warning_once(
"""No EdgeDefinition provided.
Graphs will not have edges defined!""" # noqa
)
@@ -634,10 +635,11 @@ Source code
if feature not in ["x"]: # reserved for node features.
graph[feature] = graph.x[:, index].detach()
else:
- self.warnonce(
- """Cannot assign graph['x']. This field is reserved
- for node features. Please rename your input feature.""" # noqa
- )
+ self.warning_once(
+ """Cannot assign graph['x']. This field is reserved for
+ node features. Please rename your input feature."""
+ ) # noqa
+
return graph
def _add_custom_labels(