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

openbraininstitute / neurodamus / 14997469469
90%

Build:
DEFAULT BRANCH: main
Ran 13 May 2025 01:23PM 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

13 May 2025 01:09PM UTC coverage: 84.181% (+0.2%) from 84.029%
14997469469

push

github

web-flow
astrocytes: tests + refactoring (#252)

## Context
Astrocytes may be tested better. The implementation can be largely
improved. There will be additional prs. I am breaking the refactoring in
manageable pieces so reviewing them is easier.

## Scope
### Astrocyte
- [x] incorporate `_init_cell` in `__init__`
- [x] removed `glut_list` are a real member variable. We use now
`sections_glut` and `soma_glut` variables. `glut_list` is a `@property`
for compatibility with metabolism. This simplifies and makes the code
more robust against off by 1 errors.
- [x] fix #251
- [x] ~~remove hoc from `create_endfeet`~~ EDIT: moved to #258
- [x] add issue for `_nseg_warnings` #261
### MorphIOwrapper
- [x] remove `section_index2name_dict` from morphIOwrapper. replaced
with `section_names`
- [x] fix #148  
- [x] add a new `@dataclass` to handle section names: `SectionName`. It
has also a very handful `__str__` member function to auto-convert it in
standard neuron/hoc code


## Bugfixes
### Astrocyte
- [x] `GlutReceiveSoma` should be just used for reporting. It should not
interact with `cadifus`. Atm we effectively override `GLutReceive` in
the soma section with this one for what concerns `cadifus`. We stop with
that. fix #257

## Testing
### Astrocyte
- [x] move astrocyte testing to new file. GlutList included
- [x] add testing for `GlutList`
- [x] change reference in old ngv tests since they were generated with a
bug in the code
- [x] rearrange reference in tests as numpy expects the reference as
last (second) element of a comparison... Otherwise it fails pointing at
inverted ACTUAL and CURRENT values
- [x] change test so that there is 1 astrocyte with 2 endfeet
- [x] full comparison all Rad and R0pas in old radii test 
## MorphIOwrapper
- [x] test `get_section_names()`. Compare it with printnames? check the
types

58 of 60 new or added lines in 2 files covered. (96.67%)

1 existing line in 1 file now uncovered.

7253 of 8616 relevant lines covered (84.18%)

2.08 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
77.54
3.17% neurodamus/ngv.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
77.54
3.17% neurodamus/ngv.py
Subprojects
ID Flag name Job ID Ran Files Coverage
1 baseline 14997469469.1 13 May 2025 01:23PM UTC 47
25.12
GitHub Action Run
2 unit-ngv 14997469469.2 13 May 2025 01:23PM UTC 47
51.62
GitHub Action Run
3 unit-mpi 14997469469.3 13 May 2025 01:23PM UTC 47
50.08
GitHub Action Run
4 unit 14997469469.4 13 May 2025 01:23PM UTC 47
81.37
GitHub Action Run
Source Files on build 14997469469
  • Tree
  • List 47
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14997469469
  • 4059292c on github
  • Prev Build on main (#14996923812)
  • Next Build on main (#14998729296)
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