Functions | |
| dict | compiled_eulerian () |
| Canonical name to layout for every compiled Eulerian catalog entry. | |
| set | compiled_particle () |
| Canonical names of every compiled particle catalog entry. | |
| set | compiled_layouts () |
| Layout vocabulary the header defines. | |
| str | page_section (str heading) |
One @section body from the catalog page. | |
| tuple | documented_eulerian (str section) |
| Field-to-layout mapping the inventory section publishes. | |
| set | documented_particle (str section) |
| Particle field names the inventory section publishes. | |
| set | documented_layouts () |
| Layout vocabulary the layout section tabulates. | |
| int | main () |
| Fail when the published catalog inventory and the compiled catalog disagree. | |
Variables | |
| REPO_ROOT = Path(__file__).resolve().parents[2] | |
| str | EULERIAN_CATALOG = REPO_ROOT / "src" / "field_catalog.c" |
| str | PARTICLE_CATALOG = REPO_ROOT / "src" / "particle_field_catalog.c" |
| str | LAYOUT_HEADER = REPO_ROOT / "include" / "field_catalog.h" |
| str | PAGE = REPO_ROOT / "docs" / "pages" / "56_Field_Identity_and_Layout_Catalog.md" |
| dict | GROUP_LAYOUTS |
| ENTRY_RE | |
| PARTICLE_ENTRY_RE = re.compile(r'PARTICLE_FIELD_ENTRY\(\s*PARTICLE_FIELD_ID_\w+\s*,\s*"([^"]+)"') | |
| LAYOUT_ENUM_RE = re.compile(r"^\s*(FIELD_LAYOUT_\w+)", re.M) | |
| BACKTICKED_RE = re.compile(r"`([A-Za-z_][A-Za-z0-9_]*)`") | |
Enforce that the documented field catalog matches the compiled one.
| dict audit_field_catalog.compiled_eulerian | ( | ) |
Canonical name to layout for every compiled Eulerian catalog entry.
FIELD_LAYOUT_* value. Definition at line 37 of file audit_field_catalog.py.
| set audit_field_catalog.compiled_particle | ( | ) |
Canonical names of every compiled particle catalog entry.
Definition at line 45 of file audit_field_catalog.py.
| set audit_field_catalog.compiled_layouts | ( | ) |
Layout vocabulary the header defines.
FIELD_LAYOUT_* enumerators. Definition at line 53 of file audit_field_catalog.py.
| str audit_field_catalog.page_section | ( | str | heading | ) |
One @section body from the catalog page.
| [in] | heading | Section id to extract. |
Definition at line 63 of file audit_field_catalog.py.
| tuple audit_field_catalog.documented_eulerian | ( | str | section | ) |
Field-to-layout mapping the inventory section publishes.
| [in] | section | Inventory section body. |
Definition at line 75 of file audit_field_catalog.py.
| set audit_field_catalog.documented_particle | ( | str | section | ) |
Particle field names the inventory section publishes.
| [in] | section | Inventory section body. |
Definition at line 97 of file audit_field_catalog.py.
| set audit_field_catalog.documented_layouts | ( | ) |
Layout vocabulary the layout section tabulates.
FIELD_LAYOUT_* enumerators. Definition at line 107 of file audit_field_catalog.py.
| int audit_field_catalog.main | ( | ) |
Fail when the published catalog inventory and the compiled catalog disagree.
Checks identity sets, layout assignment, and layout vocabulary. It does not check degrees of freedom, DM family, synchronization class, availability, capability flags, or whether the runtime actually allocates a field.
Definition at line 116 of file audit_field_catalog.py.
| audit_field_catalog.REPO_ROOT = Path(__file__).resolve().parents[2] |
Definition at line 11 of file audit_field_catalog.py.
| str audit_field_catalog.EULERIAN_CATALOG = REPO_ROOT / "src" / "field_catalog.c" |
Definition at line 12 of file audit_field_catalog.py.
| str audit_field_catalog.PARTICLE_CATALOG = REPO_ROOT / "src" / "particle_field_catalog.c" |
Definition at line 13 of file audit_field_catalog.py.
| str audit_field_catalog.LAYOUT_HEADER = REPO_ROOT / "include" / "field_catalog.h" |
Definition at line 14 of file audit_field_catalog.py.
| str audit_field_catalog.PAGE = REPO_ROOT / "docs" / "pages" / "56_Field_Identity_and_Layout_Catalog.md" |
Definition at line 15 of file audit_field_catalog.py.
| dict audit_field_catalog.GROUP_LAYOUTS |
Definition at line 18 of file audit_field_catalog.py.
| audit_field_catalog.ENTRY_RE |
Definition at line 27 of file audit_field_catalog.py.
| audit_field_catalog.PARTICLE_ENTRY_RE = re.compile(r'PARTICLE_FIELD_ENTRY\(\s*PARTICLE_FIELD_ID_\w+\s*,\s*"([^"]+)"') |
Definition at line 32 of file audit_field_catalog.py.
| audit_field_catalog.LAYOUT_ENUM_RE = re.compile(r"^\s*(FIELD_LAYOUT_\w+)", re.M) |
Definition at line 33 of file audit_field_catalog.py.
| audit_field_catalog.BACKTICKED_RE = re.compile(r"`([A-Za-z_][A-Za-z0-9_]*)`") |
Definition at line 34 of file audit_field_catalog.py.