Skip to content

optical stim: support runtime display pin map#188

Open
namthor9 wants to merge 1 commit into
mainfrom
maxr/optical-stim-display-map
Open

optical stim: support runtime display pin map#188
namthor9 wants to merge 1 commit into
mainfrom
maxr/optical-stim-display-map

Conversation

@namthor9

Copy link
Copy Markdown
Contributor

What

Adds display_map (row_map/col_map) support to the OpticalStimulation client node:

  • __init__ params with validation (dims ≤ 128, pins ≤ 255, both-or-neither, pixel_mask length consistency)
  • full _to_proto / _from_proto round-trip (via HasField('display_map'))
  • ready-made pin-map constants for the known displays
  • CLI device info shows the configured display dimensions

Dependency

Depends on sciencecorp/synapse-api#83 (the DisplayMap proto). The synapse-api submodule must be bumped and the generated bindings regenerated (setup.sh) after that merges. Generated *_pb2.py are gitignored, so they are intentionally not in this diff.

Add display_map (row_map/col_map) support to the OpticalStimulation client
node: __init__ params with validation (dims <= 128, pins <= 255, paired,
pixel_mask consistency) and full _to_proto/_from_proto round-trip. Add
ready-made pin maps for the known displays. Show the configured display
dimensions in the CLI device info.

Depends on the synapse-api DisplayMap change; the synapse-api submodule must
be bumped (and bindings regenerated) after that merges.
@namthor9 namthor9 force-pushed the maxr/optical-stim-display-map branch from 40e12f6 to 3a4b640 Compare June 26, 2026 23:38
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.

1 participant