Skip to content

Commit daf011c

Browse files
linting + remove debug statements
1 parent 20434b6 commit daf011c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

graphium/nn/architectures/global_architectures.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -593,15 +593,15 @@ def _check_bad_arguments(self):
593593
(self.in_dim_edges > 0) or (self.full_dims_edges is not None)
594594
) and not self.layer_class.layer_supports_edges:
595595
raise ValueError(f"Cannot use edge features with class `{self.layer_class}`")
596-
596+
597597
def get_nested_key(self, d, target_key):
598598
"""
599599
Get the value associated with a key in a nested dictionary.
600-
600+
601601
Parameters:
602602
- d: The dictionary to search in
603603
- target_key: The key to search for
604-
604+
605605
Returns:
606606
- The value associated with the key if found, None otherwise
607607
"""
@@ -653,7 +653,6 @@ def _create_layers(self):
653653

654654
# Find the edge key-word arguments depending on the layer type and residual connection
655655
this_edge_kwargs = {}
656-
# import ipdb; ipdb.set_trace()
657656
if self.layer_class.layer_supports_edges and self.in_dim_edges > 0:
658657
this_edge_kwargs["in_dim_edges"] = this_in_dim_edges
659658
if "out_dim_edges" in inspect.signature(self.layer_class.__init__).parameters.keys():
@@ -664,7 +663,6 @@ def _create_layers(self):
664663
this_out_dim_edges = self.get_nested_key(self.layer_kwargs, "out_dim_edges")
665664
this_edge_kwargs["out_dim_edges"] = this_out_dim_edges
666665
layer_out_dims_edges.append(this_out_dim_edges)
667-
# import ipdb; ipdb.set_trace()
668666

669667
# Create the GNN layer
670668
self.layers.append(
@@ -683,7 +681,6 @@ def _create_layers(self):
683681

684682
# Create the Virtual Node layer, except at the last layer
685683
if ii < len(residual_out_dims):
686-
# import ipdb; ipdb.set_trace()
687684
self.virtual_node_layers.append(
688685
self.virtual_node_class(
689686
in_dim=this_out_dim * self.layers[-1].out_dim_factor,

0 commit comments

Comments
 (0)