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

openbraininstitute / neurodamus / 17828846450
90%

Build:
DEFAULT BRANCH: main
Ran 18 Sep 2025 12:44PM UTC
Jobs 4
Files 47
Run time 1min
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: 90.528% (+0.2%) from 90.365%
17828846450

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`

122 of 144 new or added lines in 8 files covered. (84.72%)

7350 of 8119 relevant lines covered (90.53%)

2.29 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
88.51
0.0% neurodamus/core/configuration.py
3
94.9
-1.89% neurodamus/core/nodeset.py
16
87.95
4.43% neurodamus/target_manager.py
Subprojects
ID Flag name Job ID Ran Files Coverage
1 unit-mpi 17828846450.1 18 Sep 2025 12:44PM UTC 47
60.54
GitHub Action Run
2 baseline 17828846450.2 18 Sep 2025 12:44PM UTC 47
25.46
GitHub Action Run
3 unit 17828846450.3 18 Sep 2025 12:44PM UTC 47
88.1
GitHub Action Run
4 unit-ngv-mpi 17828846450.4 18 Sep 2025 12:44PM UTC 47
54.9
GitHub Action Run
Source Files on build 17828846450
  • Tree
  • List 47
  • Changed 10
  • Source Changed 10
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17828846450
  • 867a40d0 on github
  • Prev Build on main (#17761564583)
  • Next Build on main (#18338779090)
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

© 2025 Coveralls, Inc