Repository navigation
Add compute_memodel_properties_from_template to avoid parent-process Cell() - #107
Open
eleftherioszisis wants to merge 5 commits into
Open
eleftherioszisis wants to merge 5 commits into
eleftherioszisis wants to merge 5 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
... and 2 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Contributor
Author
Follow-up on the review (divergences / seed / exact goldens)Decisions
What landed
|
…oldens. The cvode gap between compute_memodel_properties(cell) and from_template is mainly a steady-state sampling artifact (few irregular cvode samples in the measurement window), not a difference in accuracy. Remove the != assertions that locked it in, reword docstrings, and use rel=1e-4 for the hippocampus goldens, which vary across platforms (macOS arm64).
Contributor
Author
|
Thanks for the correction and the detailed evidence. I reproduced the sampling table on Linux (1432.99 / 1472.04 with cvode steps vs 1417.94 / 1417.90 at fixed 0.1 ms, 1418.06 fixed-step reference), so I agree the gap is a measurement artifact. Addressed in 79c3ca1:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
compute_memodel_properties_from_templateso me-model properties can be computed from template paths without constructing aCellin the caller.Cell()is created only inside the isolated worker (pinned toCellId("", 0)), so callers (notably obi-one) can drop their spawn/subprocess wrapper that existed only to isolateCell()initialization.compute_memodel_properties(cell, ...)andcompute_memodel_properties_subprocessreturn contracts unchanged for backwards compatibility (bit-identical tomain).Differences vs
compute_memodel_properties(cell)_probe_rheobase_and_rinaverages steady-state voltage over the few irregular cvode samples in (800, 1000] ms (4–5 points on slow cells), so small changes in cvode step placement (e.g. from the caller's Cell inherited by the fork) move Rin/RMP, and through them the rheobase search bound. With fixed-interval recording both APIs agree to within solver tolerance (~0.01%). Fixing the sampling is tracked separately in Measure steady-state voltage from fixed-interval samples in rheobase/Rin probes #108, since it will shift stored calibration values.cSTUT_7 (fixed step, StochKv never seeded in this probe path) matches the cell-based API bit for bit.