From 3a02d76d96dafa38ba8b1d7d24c0f76deec6c413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20S=C3=B8gaard?= Date: Mon, 25 Sep 2023 09:29:07 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20graphnet?= =?UTF-8?q?-team/graphnet@fab9e4f0776d0f562094aafaf5a710d0a93fb404=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _modules/graphnet/models/graphs/edges/edges.html | 2 +- .../graphnet/models/graphs/graph_definition.html | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) 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(