Skip to content

Commit

Permalink
Docstring done
Browse files Browse the repository at this point in the history
  • Loading branch information
icedoom888 committed Dec 18, 2024
1 parent 8602b15 commit 18e9a75
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions docs/graphs/edge_attributes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,25 @@ edge.
target_name: ...
edge_builders: ...
attributes:
attribute_name:
comes_from_source_node:
_target_: anemoi.graphs.edges.attributes.AttributeFromSourceNode
node_attr_name: "attribute_name"
Example usage for copying the cutout mask from nodes to edges in the encoder:

.. code:: yaml
edges:
# Encoder
- source_name: data
target_name: hidden
edge_builders: ...
attributes:
cutout:
_target_: anemoi.graphs.edges.attributes.AttributeFromSourceNode
node_attr_name: cutout
*************
From Target
*************
Expand All @@ -85,6 +100,19 @@ edge.
target_name: ...
edge_builders: ...
attributes:
attribute_name:
comes_from_target_node:
_target_: anemoi.graphs.edges.attributes.AttributeFromTargetNode
node_attr_name: "attribute_name"
Example usage for copying the coutout mask from nodes to edges in the decoder:

.. code:: yaml
edges:
# Decoder
- source_name: hidden
target_name: data
edge_builders: ...
attributes:
cutout:
_target_: anemoi.graphs.edges.attributes.AttributeFromTargetNode
node_attr_name: cutout

0 comments on commit 18e9a75

Please sign in to comment.