From 0b85d7f28ce15986c57043a122ba49687f06ed28 Mon Sep 17 00:00:00 2001 From: PONS Date: Mon, 14 Sep 2026 09:16:45 +0200 Subject: [PATCH 1/2] Restored lattice-names doc --- pyaml/common/element.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pyaml/common/element.py b/pyaml/common/element.py index e18da8d6..88ebb7f9 100644 --- a/pyaml/common/element.py +++ b/pyaml/common/element.py @@ -252,7 +252,17 @@ class Element: Unique element name. lattice_names : str or None, optional Lattice element selector associated with this element. Defaults to - ``name`` when omitted. + ``name`` when omitted. A pyAML element can be associated to several lattice elements. + Defaults to name when omitted. + + | Supported syntax of lattice_names: + | ``list(name,[name])`` : Lattice element names + | ``[name]@idx[,idx]`` : Lattice element indices in the subset formed by name. + | ``[name]#start_idx..end_idx`` : Lattice element range in the subset formed by name. + + In the above syntax, if the name is not specficied, the whole set + of lattice element is used for indexing. + description : str or None, optional Human-readable element description. From 6b7708fe85cd0f81a78838f908d1d10720bf994c Mon Sep 17 00:00:00 2001 From: PONS Date: Mon, 14 Sep 2026 11:05:21 +0200 Subject: [PATCH 2/2] Removed duplicated line --- pyaml/common/element.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pyaml/common/element.py b/pyaml/common/element.py index 88ebb7f9..7314c8d1 100644 --- a/pyaml/common/element.py +++ b/pyaml/common/element.py @@ -253,7 +253,6 @@ class Element: lattice_names : str or None, optional Lattice element selector associated with this element. Defaults to ``name`` when omitted. A pyAML element can be associated to several lattice elements. - Defaults to name when omitted. | Supported syntax of lattice_names: | ``list(name,[name])`` : Lattice element names