diff --git a/_modules/graphnet/models/graphs/graph_definition.html b/_modules/graphnet/models/graphs/graph_definition.html index 94362628f..301b6dc9f 100644 --- a/_modules/graphnet/models/graphs/graph_definition.html +++ b/_modules/graphnet/models/graphs/graph_definition.html @@ -406,11 +406,6 @@

Source code self._resolve_masks() - if self._edge_definition is None: - self.warning_once( - """No EdgeDefinition given. Graphs will not have edges!""" - ) - if input_feature_names is None: # Assume all features in Detector is used. input_feature_names = list(self._detector.feature_map().keys()) # type: ignore @@ -533,6 +528,12 @@

Source code # Assign edges if self._edge_definition is not None: graph = self._edge_definition(graph) + else: + + self.warning_once( + """No EdgeDefinition provided. + Graphs will not have edges defined!""" # noqa + ) # Attach data path - useful for Ensemble datasets. if data_path is not None: