runtraj.output.Output.read#
- Output.read(kind, variant, release_id, realization=None, columns=None)[source]#
Return one release’s result file as a table of its stored columns.
The file as written, with no
datecolumn: whattable()reads for many releases at once, for one.table()builds a dataset over its files, which costs more than this on a single one, so a method that reads releases one at a time uses this.- Parameters:
kind (
str) – Which result:"particles", or a stage whose files are Parquet.variant (
Variant) – Whose result.release_id (
str) – The release, whose file must exist (present()).realization (
int|None) – Which realization of an ensemble.columns (
list[str] |None) – Only these stored columns. Every column by default.
- Raises:
FileNotFoundError – If the release has no file, or the variant no folder.
- Return type: