fullseye

table_write_csv — FILEIO table op

使い方

単位と由来を持つ表を、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"})。

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(text を入力に取れる)

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

同カテゴリ(table)

table_read_csv


Provenance: fileio.py — FILEIO operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

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