Repository navigation
feat(loop-link): add loop_link, a Python link to geoviewer (spec 006, S1 to S3) - #406
Merged
Merged
Conversation
# Conflicts: # ROADMAP.md # specs/005-coordinate-frame-correctness/plan.md # specs/005-coordinate-frame-correctness/tasks.md # specs/README.md
OP5 fallback used: packages/loop_link is in the uv workspace exclude list; uv.lock is unchanged.
…ture tests (wave 9)
…ds and honours cancel; more adapter test cases (wave 10 review)
…push API (wave 11)
…checks (wave 11 review)
…ld a real filter)
… stays open (S5 gate T063 failed)
- Viewer: the tool connection uses the address of the data connection, so select, selection and fetch go to the same viewer as send. - Viewer: a failed send or heartbeat no longer blocks later sends; only close() does. A later send opens a new connection. - ToolConnection: an error in on_frame closes the connection, so the viewer stops the stream and a later request does not read it. - pyvista adapter: refuse PolyData that mixes lines with polygons or strips; convert line cells with numpy, not a Python loop. - loopstructural adapter: flatten grid properties in x-fastest order and split (n, k) properties into one property for each column. - pandas adapter: accept 'category' columns. - Selection: the index arrays are writeable copies. - WebSocket mask: make the key pattern only as long as the frame. - Read __version__ from the package metadata (version.py), so that release-please bumps keep it correct.
Resolve conflicts in ROADMAP.md and specs/README.md: keep the spec 005 status from master and the spec 006 status from this branch.
… timing test - A send after a failed connection connects again. If no viewer is found, raise ViewerClosedError, not NoViewerError, as the documented error of a viewer that closes during use. - test_main_thread_is_not_blocked_by_slow_push: check that the push ran while the main thread ran, not the elapsed time, which fails on slow CI runners.
This was referenced Nov 17, 2026
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
Adds
loop_link, a Python package that sends objects from a Python session to the geoviewer window over its local link (protocol 1.14). This is spec 006, stages S1 to S3 (stories 1 and 5).encode_objectwrites the geoviewer frame. Coordinates are shifted in float64 and written as f32 only when the shifted values are at most 4000.Viewer(connect, send, send_group, remove, clear, inventory, flush, release_data, close) with a standard-library WebSocket client, a heartbeat thread, andfind_viewerdiscovery.push_objectswithPushResult.loop_link.testing.FakeViewer, which follows the main rules of the real codec.ROADMAP.mdand the root ruff settings.packages/loop_linkis in the uv workspaceexcludelist because uv 0.11.8 cannot lock a Python 3.10-only member with the Python 3.9 workspace.uv.lockis unchanged. Loop-link has its own CI job,loop-link-test.This branch also merges
origin/master, because repo-wideruff checkfailed on master.Checks
ruff check LoopStructural packages: pass.black --check packages/loop_link: pass.LOOP_LINK_GEOVIEWER_FIXTURES). 4 tests skip without them.pytest: 2200 passed, 10 skipped.packages/loop_link/tests/manual_checks.md), window viewer with the selection-and-fetch build (geoviewer spec 067):intervalarrays in a log set. The last commit fixes this.Not in this pull request
loop-link-testCI job has not yet run on a real runner.specs/006-loop-link/run-state.json.🤖 Generated with Claude Code
https://claude.ai/code/session_01XADRvLYYZrrcx9Nu8e5tgs