Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/user-guide/code-generation/template-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,14 @@ These iterate plain value lists.
| `element_density_matrix` | `element` |
| `element_truth_matrix` | `element` |

**Radiation:**

| Collection | Variable |
| ---------------------- | -------------------- |
| `radiation_boundaries` | `radiation_boundary` |

Band edges, of length `nbands + 1`. Empty if the network has no radiation.

---

## GET
Expand Down
6 changes: 6 additions & 0 deletions src/jaff/codegen/_template_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1509,6 +1509,12 @@ def __get_parser_dict(self) -> dict[str, CommandProps]:
"func": lambda: self.net.species.charged("mass"),
"vars": ["idx", "charged_specie_mass"],
},
"radiation_boundaries": {
"func": lambda: (
self.net.radiation.bands if self.net.radiation else []
),
"vars": ["idx", "radiation_boundary"],
},
Comment thread
XRByte marked this conversation as resolved.
},
},
"REDUCE": {
Expand Down
Loading