Skip to content

feat: add python state, remove uneeded functions, convert node type to enum#160

Merged
afonsobspinto merged 22 commits into
feature/edit-modefrom
refactor/review-skeletons-logic
May 14, 2026
Merged

feat: add python state, remove uneeded functions, convert node type to enum#160
afonsobspinto merged 22 commits into
feature/edit-modefrom
refactor/review-skeletons-logic

Conversation

@seankmartin
Copy link
Copy Markdown

  • refactor: use annotationId pattern for nodeId
  • revert: remove uneeded format hover this was used when we initially had ID=label
  • python: add state for new viewer state related to skesl
  • refactor: convert node type as str to enum

Comment thread python/neuroglancer/viewer_state.py Outdated
"spatialSkeletonNodeQuery", optional(str, "")
)
spatial_skeleton_node_filter = spatialSkeletonNodeFilter = wrapped_property(
"spatialSkeletonNodeFilter", optional(int, 0)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

codex: spatialSkeletonNodeFilter is incompatible between Python and TS. In Python it was added as optional(int, 0) in viewer_state.py (line 992), but the frontend TrackableEnum reads/writes enum strings ("leaf", "virtual_end", etc.) in trackable_enum.ts (line 45).

Copy link
Copy Markdown
Author

@seankmartin seankmartin May 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed this, added a Python script for trying the state. At the moment it needs your own catmaid source though (can be the metacell one for e.g.). Maybe could move to docs instead, but might be fine for now

Either way the script brought up a few extra issues around credentials and outdated state which were also addressed in this. The python credentials provider is based on the pattern for the other providers already setup

seankmartin and others added 18 commits May 12, 2026 21:59
also indicate via comments diff paths and clear seg hasSelectedSegment
this allows us to be more maintainable. This bug stemmed from the isReady using a
different path for chunk manage then the rendering did
fix: correct isReady check on spatial skeleton layers
feat: add saturation support and seg higlight to spatial skeleton render
fix: remove skeleton double rendering in browse pass
@afonsobspinto afonsobspinto merged commit 1b25340 into feature/edit-mode May 14, 2026
1 check passed
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