table_write_csv — FILEIO table op

• Data kinds: table → text

• Call: import fullseye as fs; fs.ledger.table_write_csv(table, *, units, meta) (to call the implementation directly, import fileio; fileio.table_write_csv(table, *, units, meta); from the registry, opsfileio.get("table_write_csv"))

• GPU: none (CPU reference implementation only)

Usage

Writes a table with units and provenance as CSV text readable by pandas and MATLAB (text).

> The detailed description below is the original text — the summary and the headings are translated.

table は {列名: 1-D 配列}。units は全列の単位を同じキーで持つ辞書、meta は source(出所)、generated_at(ISO 8601)、coordinate_meaning(座標の意味)を必ず持つ。1 行目は列名、2 行目は # units:、続く # key: value 行はメタデータ、その後がデータ。pandas.read_csv(StringIO(text), comment="#") で列名と値を読み、MATLAB ではコメント行を除外して readtable で読める。浮動小数は Python の repr で丸めず、列長不一致・単位欠落・無限値は拒否する。

呼び出し例: table_write_csv({"x": [1.0]}, units={"x": "mm"}, meta={"source": "caliper", "generated_at": "2026-10-31T12:00:00+09:00", "coordinate_meaning": "x is right-handed"})。

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• fileio_roundtrip — py -3.11 examples/fileio_roundtrip.py

Ops the type connects to (they accept text as input)

table_read_csv · mesh_read_ply · mesh_read_stl · mesh_read_obj · mesh_read_off · points_read_xyz · e57_read · archive_probe

Same category (table)

table_read_csv


*Provenance: fileio.py — FILEIO operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.