table optable → textimport fullseye as fs; fs.ledger.table_write_csv(table, *, units, meta) (実装を直接呼ぶなら import fileio; fileio.table_write_csv(table, *, units, meta)、台帳から引くなら opsfileio.get("table_write_csv"))単位と由来を持つ表を、pandas / MATLAB でも読める CSV 文字列にする(text)。
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"})。
py -3.11 examples/fileio_roundtrip.pytext を入力に取れる)table_read_csv · mesh_read_ply · mesh_read_stl · mesh_read_obj · mesh_read_off · points_read_xyz · e57_read
table)Provenance: fileio.py — FILEIO operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.