Parse segment query only when a key is pressed
See original GitHub issueHi,
I have created an action handler in Python which captures the state change based on the segment query. I am using regular expressions to get different object types. The problem is the up-gradation of the segment query as soon as I type a property that matches my regular expression e.g prop > 6
is matched and the result is processed even though I wanted to write prop > 60
.
I first tried creating a keyboard event listener in Python but it would be of no use since the segment query is being changed from the frontend (typescript). Basically, I want to turn off the auto-changing of the segment query and only use the enter key to do so. I noticed that Neuroglancer is also using a KeyboardEventBinder
for the queryElement
. Then, I tried commenting out two registerDisposer(observeWatchable())
blocks in segment_list.ts but that didn’t work.
I reckon it would be a very small thing to change or add in the typescript files. However, I don’t have any working knowledge of typescript. Any suggestions would be appreciated!
Best, Hashir
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top GitHub Comments
The precomputed segment property format is described here: https://github.com/google/neuroglancer/blob/master/src/neuroglancer/datasource/precomputed/segment_properties.md
Currently the Python datasource does not support segment properties though — that would have to be implemented.
This is very good. I am also thinking of doing something similar!
What do you mean by the “precomputed json format”? Also, can I specify my own set of categorical and numerical properties in the Python backend? or will I have to change the frontend for this?