• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openbraininstitute / neurodamus / 17828846450 / 1 – unit-mpi
90%
main: 90%

Build:
DEFAULT BRANCH: main
Ran 18 Sep 2025 12:44PM UTC
Files 47
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Sep 2025 12:36PM UTC coverage: 60.537% (+0.06%) from 60.473%
unit-mpi – 17828846450.1

push

github

web-flow
`compartment sets`: stimulus (#378)

## Context
Fix: #368

## Scope

Introduce the possibility to use compartment sets even in the input
blocks

- add `get_point_list` to the stimuls manager. Now we do not pass the
target directly to the stimulus object. We pass directly the points. In
this way we can have only one function to pick the points based if
compartment_sets is there or not
- add a `get_compartment_set` to the `target_manager`
- improve `get_local_gids` to fully leverage `libsonata.Selection`.
`SelectionNodeSet.intersection` has been modified accordingly to return
a `libsonata.Selection`
- unification of `get_gids` and `get_final_gids` in `NodeSetTarget`. It
gets the same treatment as `SelectionNodeSet`. Marginal speedup due to
using `libsonata.Selection` for merging ranges.
- rename `TPointList` to `TargetPointList`
- `_tpoints` to `_target_points`

Note: if `compartment_sets` is there the `node_sets` is empty (enforced
by libsonata). This makes the target manager always pick the `_ALL_`
target. from there, we select the population provided by the
`compartment_sets` and proceed to pick the points from there. I hope
this is a sensible way of picking the points. I am open to suggestions
if you think this may be dangerous

## Testing

Tested only for the pulse input. However, given how it is implemented,
additional tests may be superfluous. Let me know if you want more

- new test added: `tests/unit/test_compartment_set_stimulus.py`

4915 of 8119 relevant lines covered (60.54%)

0.61 hits per line

Source Files on job unit-mpi - 17828846450.1
  • Tree
  • List 47
  • Changed 10
  • Source Changed 10
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 17828846450
  • 867a40d0 on github
  • Prev Job for on main (#17761564583.2)
  • Next Job for on main (#18338779090.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc