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

openbraininstitute / neurodamus / 21910816959 / 2 – unit
91%
main: 91%

Build:
DEFAULT BRANCH: main
Ran 11 Feb 2026 03:23PM UTC
Files 49
Run time 1s
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

11 Feb 2026 03:16PM UTC coverage: 88.384% (+0.3%) from 88.096%
unit – 21910816959.2

push

github

web-flow
Implement extracellular stimulus: module "spatially_uniform_e_field" (#425)

## Context
Implements the extracellular stimulus of pattern
spatially_uniform_e_field. It allows the summation of multiple `fields`
in the same stimulus block, as well as the combination of multiple
spatially_uniform_e_field stimulus blocks. For each spatially_uniform_e_field stimulus:
- Rotate/translate all segments' local positions to obtain the global coordinates
- For the new axon and myelin sections, interpolate their local positions along local soma y-axis, then rotate/translate them into global coordinates
- Compute extracellular potentials by (seg_global_pos - vec_soma_global_pos) .dot (Ex,Ey,Ez)

## Scope
1. New class `SpatiallyUniformEField` in `stimulus_manger.py`
2. New class `ElectrodeSource` in `stimuli.py`
3. Function `get_all_segment_points` in `metype.py` to compute the
global coordinates of all the segment points

## Testing
1. new unit test in `test_metype.py` for `get_all_segment_points`
2. fix `test_get_section_id` in `test_metype.py` which should assert the
section ids of the test cell.
3. new unit tests for the new electric field stimulus
- unit/test_single_extracellular_stimulus.py (single stimulus block)
- unit/test_multiple_extracellular_stimulus.py (multiple stimulus
blocks)
- unit-mpi/test_extracellular_stimulus.py (mpi test)
- scientific/test_extracellular_stimulation (for reporting)
4. And the rotation to the current ring test big-cell nodes file, to
enable the computation of segments' global coordinates. Should have no
impact on the other unit tests.

## Review
* [x] PR description is complete
* [x] Coding style (imports, function length, New functions, classes or
files) are good
* [x] Unit/Scientific test added
* [ ] Updated Readme, in-code, developer documentation

## Docs


https://github.com/openbraininstitute/sonata-extension/blob/master/source/sonata_simulation.rst

---------

Co-authored-by: Alessandro Cattabiani <cattabiani@users.noreply.github.com>

7335 of 8299 relevant lines covered (88.38%)

0.88 hits per line

Source Files on job unit - 21910816959.2
  • Tree
  • List 49
  • Changed 7
  • Source Changed 6
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 21910816959
  • 0e78c4f4 on github
  • Prev Job for on main (#21866279372.2)
  • Next Job for on main (#21941278769.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