gcode_read — PRINTPATH gcode op

• Data kinds: text → table

• Call: import fullseye as fs; fs.ledger.gcode_read(path: 'str', layer_from: 'str' = 'auto') -> 'dict[str, np.ndarray]' (to call the implementation directly, import printpath; printpath.gcode_read(path: 'str', layer_from: 'str' = 'auto') -> 'dict[str, np.ndarray]'; from the registry, opsprintpath.get("gcode_read"))

Usage

> This operator's description has not been translated yet. The original text follows as it is.

G-code(RepRap / Marlin 系)を線分の表 `table に読む: 列 x0 y0 z0 x1 y1 z1(mm)、e`(その線分で

押し出したフィラメント長 mm、移動だけなら 0)、`f(送り mm/min)、layer`(層番号)。

解釈するのは G0 / G1(直線移動)、G90 / G91(座標の絶対 / 相対)、M82 / M83(E の絶対 / 相対)、G92(座標の

リセット)、G20 / G21(インチ / mm)、`;` コメント。円弧 G2 / G3 は扱わない(黙って直線にせず ValueError ——

スライサで直線に展開して出力すること)。層は `layer_from="tag" なら ;LAYER:n のコメント、"z"` なら押し出し

を伴う Z の増加で切る。`"auto"` はタグがあればタグ、無ければ Z。座標が一度も与えられないまま押し出す行は

ValueError(方言の穴を黙って 0 で埋めない)。

>>> t = gcode_read("part.gcode")

>>> t["e"].sum() # 押し出したフィラメントの総長 [mm]

Detailed usage guide

• printpath family guide

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)

• poc_print_layer_inspection — py -3.11 examples/poc_print_layer_inspection.py

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

gcode_write · gcode_extrusion_volume · gcode_time_estimate · gcode_layer_image · contours_to_gcode

Same category (gcode)

gcode_write · gcode_extrusion_volume · gcode_time_estimate · gcode_layer_image


*Provenance: printpath.py — PRINTPATH 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.