Skip to content

Commit

Permalink
Update src/anemoi/graphs/edges/attributes.py
Browse files Browse the repository at this point in the history
Co-authored-by: Mario Santa Cruz <48736305+JPXKQX@users.noreply.github.com>
  • Loading branch information
icedoom888 and JPXKQX authored Dec 18, 2024
1 parent 919d0ad commit 40394e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anemoi/graphs/edges/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def get_raw_values(self, graph: HeteroData, source_name: str, target_name: str)

edge_index = graph[(source_name, "to", target_name)].edge_index
assert hasattr(graph[node_name], self.node_attr_name)
val = getattr(graph[node_name], self.node_attr_name).numpy()[edge_index[self.idx]]
return graph[node_name][self.node_attr_name].numpy()[edge_index[self.idx]]
return val


Expand Down

0 comments on commit 40394e4

Please sign in to comment.