Skip to content

Commit

Permalink
Fix warnonce bug
Browse files Browse the repository at this point in the history
Change warnonce to warning_once, which is the correct method.
  • Loading branch information
AMHermansen authored Sep 22, 2023
1 parent 0c7175a commit 4a347bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphnet/models/graphs/edges/edges.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
)
Expand Down

0 comments on commit 4a347bf

Please sign in to comment.