Pin Sphinx to a sphinx-bluebrain-theme compatible version and bump actions#3
Pin Sphinx to a sphinx-bluebrain-theme compatible version and bump actions#3
Conversation
This was an API change in LFPy>=2.3.6
python 3.9 is EOL since Oct 2025 and arbor>=0.10 has no cp39 wheels
Set mechanisms_directory on NrnSimulator/LFPySimulator so that neuron.load_mechanisms() is called automatically in forked subprocesses spawned by SweepProtocol.run(isolate=True). - Use mechanisms_directory instead of nrn_load_dll in test_l5pc.py, test_stochkv.py, and the l5pc/stochkv/lfpy evaluators - Relax hardcoded voltage tolerance in test_NrnRampPulse_instantiate - Add tests for simulator mechanisms_directory handling
CI uses neuron-nightly which drifts slightly between builds. The AP_height assertion was pinned to 1e-5 tolerance but the nightly shifted by 0.0135 mV. Relaxed to ±0.05 mV to accommodate nightly drift while still catching real regressions.
Codecov Report✅ All modified and coverable lines are covered by tests.
🚀 New features to boost your workflow:
|
|
@AurelienJaquier @darshanmandge It took me quite some tries with AmazonQ but I got all the test passing now Please double and triple check my changes in case the LLM change something it should not. Summary of all I did: Main fix:
Hardcoded value tolerances changes (this one is important !!!)
Dependency updates
CI changes
Add new tests
|
| matrix: | ||
| os: [ubuntu-latest] | ||
| python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
| python-version: ["3.10", "3.11", "3.12"] |
There was a problem hiding this comment.
Could you also add python 3.13 and 3.14 to see if those pass the tests please?
There was a problem hiding this comment.
Arbor lacks cp3.14 wheels. Latest 0.11.0 goes up to cp313: https://pypi.org/project/arbor/#files. We can skip arbor-dependent tests on 3.14 by making the arbor extra optional in tox. What do you think @AurelienJaquier ?
There was a problem hiding this comment.
great, thanks for the suggestions, I addressed this comment in 44c3d5a tests are still passing, so 🎉
|
|
||
|
|
||
| @pytest.mark.unit | ||
| def test_nrnsimulator_default_no_regression(): |
There was a problem hiding this comment.
there is a lot of overlap with test_nrnsimulator_defaults_preserved, no?
Maybe you could merge the two functions together?
There was a problem hiding this comment.
well spotted! addressed in b319ea7 thanks a lot for the feedback
Arbor lacks cp3.14 wheels. Latest 0.11.0 goes up to cp313: https://pypi.org/project/arbor/0.11.0/#files So we skip arbor-dependent tests on 3.14 by making the arbor extra optional in tox.
AurelienJaquier
left a comment
There was a problem hiding this comment.
great, thanks @danifr !
darshanmandge
left a comment
There was a problem hiding this comment.
Thank you, @danifr !
No description provided.