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 18e9a75 commit 89af39a
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions docs/graphs/edge_attributes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,20 @@ edge.
_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:
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
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 @@ -104,15 +104,17 @@ edge.
_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:
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
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 89af39a

Please sign in to comment.