Skip to content

add disassemble example#2

Merged
Diviloper merged 1 commit into
masterfrom
disassenble_example
Sep 20, 2022
Merged

add disassemble example#2
Diviloper merged 1 commit into
masterfrom
disassenble_example

Conversation

@ZhichengLuo
Copy link
Copy Markdown
Contributor

No description provided.

@Diviloper Diviloper merged commit 382e49e into master Sep 20, 2022
estebanzimanyi added a commit that referenced this pull request May 19, 2026
Reads a vendored meos-idl.json and emits one PyMEOS OO method per
regular method-family member (comparison, spatial relationship, distance,
restriction) into tools/oo_codegen/_preview/<family>_methods.py.

Each generated method dispatches, by the argument's C-name token, to the
exact pymeos_cffi backing function the hand-written surface uses, so it
is identical to its hand-written counterpart by construction; nothing is
reimplemented. The irregular core (constructors, conversions, accessors,
transforms, I/O) stays hand-written and is counted, not dropped.

tools/oo_codegen/_preview/ is a non-destructive Draft artifact the
package never imports; it lets a reviewer diff the generated uniform
surface against pymeos/main/*.py before any staged migration. Delivery
mirrors GoMEOS PR #2; the dispatch/backing model mirrors PyMEOS PR #87.

Coverage: 2833 catalogued functions fully accounted for - 107 regular
methods (407 typed overloads) across all six families (cbuffer, geo,
npoint, pose, rgeo, temporal), 864 hand-written core, 43 Datum-bearing
internals excluded, 1519 out of scope. Zero unaccounted.

Adds tests/test_oo_codegen_coverage.py (offline gate: zero unaccounted,
six families, preview compiles and stays in lock-step with the
generator, every backing symbol is a real catalogued function) and a
CI step running the generator's accounting check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants