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

openbraininstitute / neurodamus / 14727753434
90%

Build:
DEFAULT BRANCH: main
Ran 29 Apr 2025 09:19AM UTC
Jobs 2
Files 48
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

29 Apr 2025 09:18AM UTC coverage: 78.603% (+0.2%) from 78.419%
14727753434

push

github

web-flow
improved `dump-cell-state` (for neuron only, old behavior for coreneuron) (#218)

## Context
Now that I have a nice base with the save/restore tests I can proceed to
improve/test `dump-cell-state`. Currenty `--dump-cell-state=<gid>`
accepts only 1 gid at a time. If neuron is used, there an undocumented
way to dump more than 1 gid at once: you need a file called
`debug_gids.txt` (the name is hardcoded) in the base simulation folder.
In that case neurodamus reads the gids from that file and dumps
everything. This is done by `dump_circuit_config`.

This can be largely improved (at least for neuron)

Fix: #220

## Scope

In this PR I want to be able to write:
`--dump-cell-state=0,1,2,3-9,8,7,10-13` and dump these gids with neuron.
Unfortunately, this functionality cannot be put in place for coreneuron
as it requires either:

- changing coreneuron
- having a functioning parallel context, not always true when using
coreNeuron

In case coreNeuron is used, we rever to the old behavior and use only
the first gid (emitting a warning).

- [x] update `--help`
- [x] rename a few variables to have them more consistent 

## Testing
- [x] add unit tests

3 of 47 new or added lines in 3 files covered. (6.38%)

2 existing lines in 1 file now uncovered.

7020 of 8931 relevant lines covered (78.6%)

1.03 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
26.9
0.0% neurodamus/core/coreneuron_configuration.py
18
15.06
0.13% neurodamus/node.py
25
30.4
-0.72% neurodamus/core/configuration.py

Uncovered Existing Lines

Lines Coverage ∆ File
2
15.06
0.13% neurodamus/node.py
Subprojects
ID Flag name Job ID Ran Files Coverage
1 baseline 14727753434.1 29 Apr 2025 09:19AM UTC 48
24.71
GitHub Action Run
2 unit 14727753434.2 29 Apr 2025 09:21AM UTC 48
78.58
GitHub Action Run
Source Files on build 14727753434
  • Tree
  • List 48
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14727753434
  • f2d22559 on github
  • Prev Build on main (#14709278093)
  • Next Build on main (#14749248271)
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