Conversation
Add per-type accessors (bezier_params, power, speed, frequency, pulse_width, laser_uid, layer_uid, workpiece_uid, section_params, extra_axes, dwell_duration) and a linearize() method to Ops. Migrate gcode, vertex, cairo, and ruida encoders from Command object dispatch to CommandType/CommandCategory-based dispatch.
Port all transformers, producers, simulators, encoders, and ~700+ tests from direct Command/ops.commands usage to the index-based Ops API. Add lazy state computation in clipping._get_state() to avoid expensive preload_state() call. Update tracking docs to reflect remaining work.
state_at(), preloaded_state() now return MachineState NamedTuple. inspect() returns CommandInfo NamedTuple. This makes the read API PyO3-friendly as required for the upcoming Rust port.
Inline group_by_state_continuity and flip_segment into Ops methods. Delete group.py and flip.py. Refactor estimate_time to use Ops index API instead of raw Command list. Add 42 tests covering 19 previously untested public Ops methods.
- Add scripts/build-raygeo.sh for maturin wheel build/install - Add raygeo-build, raygeo-check, raygeo-test pixi tasks - Bump raygeo dependency to >=0.2.0 - Add patchelf to native dependencies - Document raygeo section in AGENTS.md
…idebar for RayGeo API reference
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR refactors the Ops module to remove external dependencies on Command classes, absorbs bulk operations into Ops, adds index-based access methods along with a command type enum, and replaces dict return types with NamedTuples in the Ops read API.
Changes
Testing