Skip to content

Offer part-in/synaptic queries on all neural regions; page NeuronsSyn…#74

Merged
Robbie1977 merged 1 commit into
mainfrom
fix/neural-region-query-gates-and-paging
Jul 14, 2026
Merged

Offer part-in/synaptic queries on all neural regions; page NeuronsSyn…#74
Robbie1977 merged 1 commit into
mainfrom
fix/neural-region-query-gates-and-paging

Conversation

@Robbie1977

Copy link
Copy Markdown
Contributor

…aptic

Term-info menu gates were tied to the old XMI 'Class + Synaptic_neuropil' takes, so ganglion-level neural regions (e.g. adult cerebrum FBbt_00007050) missed queries that do return results there:

  • ImagesNeurons (Images of neurons with some part in): now mirrors NeuronsPartHere (Class + not Neuron + (Synaptic_neuropil OR Anatomy)); returns 154,993 for adult cerebrum.
  • NeuronsSynaptic / NeuronsPresynapticHere / NeuronsPostsynapticHere: now Class + not Neuron + Nervous_system (superset of the old Synaptic_neuropil / Visual_system / Synaptic_neuropil_domain gate, adds ganglia). The OWL query (RO_0002130 some ) returns 8,716 neuron classes for adult cerebrum.

Paging:

  • get_neurons_with_synapses_in_cached lacked an offset param while the query is in PAGED_QUERY_FUNCS and the underlying get_neurons_with_synapses_in takes offset -> 500 'unexpected keyword argument offset'. Add offset and forward it (mirrors the pre/post-synaptic cached wrappers).
  • ha_api _call now defensively drops offset/limit and retries once if a target does not declare them, so no query can 500 on paging kwargs even if a wrapper is missed.

Bump 1.22.26 -> 1.22.27.

…aptic

Term-info menu gates were tied to the old XMI 'Class + Synaptic_neuropil' takes,
so ganglion-level neural regions (e.g. adult cerebrum FBbt_00007050) missed
queries that do return results there:
- ImagesNeurons (Images of neurons with some part in): now mirrors NeuronsPartHere
  (Class + not Neuron + (Synaptic_neuropil OR Anatomy)); returns 154,993 for adult
  cerebrum.
- NeuronsSynaptic / NeuronsPresynapticHere / NeuronsPostsynapticHere: now
  Class + not Neuron + Nervous_system (superset of the old Synaptic_neuropil /
  Visual_system / Synaptic_neuropil_domain gate, adds ganglia). The OWL query
  (RO_0002130 some <region>) returns 8,716 neuron classes for adult cerebrum.

Paging:
- get_neurons_with_synapses_in_cached lacked an offset param while the query is in
  PAGED_QUERY_FUNCS and the underlying get_neurons_with_synapses_in takes offset ->
  500 'unexpected keyword argument offset'. Add offset and forward it (mirrors the
  pre/post-synaptic cached wrappers).
- ha_api _call now defensively drops offset/limit and retries once if a target does
  not declare them, so no query can 500 on paging kwargs even if a wrapper is missed.

Bump 1.22.26 -> 1.22.27.
@Robbie1977 Robbie1977 merged commit c2ce1a0 into main Jul 14, 2026
2 of 4 checks 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.

1 participant