Repository navigation
Circuit paths: time limit on example neuron chains - #152
Merged
Merged
Conversation
instance_graph chains are added best path first across datasets until VFBQUERY_CIRCUIT_TIME_LIMIT (default 30 s) is used; paths not reached have no instances, and the response says so (#114). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
instance_graphadds example neuron chains to each class path, one neuron-graph search per path per dataset. On the large connectomes that took 22 s at the defaults and over 90 s at k=20, instance_k=10, and a worker can't be stopped partway, so a request kept its worker busy even after the client had gone (review on VirtualFlyBrain/VFB3-MCP#23).find_pathstakestime_limit(seconds). Paths are always returned in full. Chains are then added best path first across datasets, and no new chain search starts once the time is used. A search can overrun by at most one chain search, about 0.3–3 s.instances. The response hastime_limit_reached: trueand a warning saying how many paths have no chains, and to ask for fewer paths, chains or datasets.VFBQUERY_CIRCUIT_TIME_LIMIT(default 30 s, 0 for none), not from the request./statusreports it.The Circuit Browser already copes with partial results. Once this is deployed, the MCP's caps on
kandinstance_kwithinstance_graphcould be relaxed.Part of #114.
Testing
tests/test_circuit_paths.py: a fake-clock test of the order and the warning across two datasets, and the setting in/status. 20 pass.🤖 Generated with Claude Code