question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Parse segment query only when a key is pressed

See original GitHub issue

Hi,

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:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
jbmscommented, Jul 13, 2021

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.

0reactions
hash-ircommented, Jul 13, 2021

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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parse.ly Destination | Segment Documentation
Enter your Domain and enable the destination in Segment. (To enable this destination, you use your Parsely website domain as your API key.) ......
Read more >
Parsing URL query in PHP [duplicate] - Stack Overflow
To parse it you should run parse_str . $parsedUrl = parse_url($url); parse_str($parsedUrl['query'] ...
Read more >
Parse Keyvalue Formatted Logs - Sumo Logic Docs
Typically, log files contain information that follow a key-value pair structure. The keyvalue operator allows you to get values from a log ...
Read more >
Query string query | Elasticsearch Guide [8.5] | Elastic
This query uses a syntax to parse and split the provided query string based on operators, such as AND or NOT . The...
Read more >
Other Parsers | Apache Solr Reference Guide 8.11
The hash rang query parser has a per segment cache for each field that this ... to query the remote Solr collection and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found