Skip to content

NMODL: Supress unwanted error messages#3741

Open
ctrl-z-9000-times wants to merge 2 commits intoneuronsimulator:masterfrom
ctrl-z-9000-times:nmodl-error
Open

NMODL: Supress unwanted error messages#3741
ctrl-z-9000-times wants to merge 2 commits intoneuronsimulator:masterfrom
ctrl-z-9000-times:nmodl-error

Conversation

@ctrl-z-9000-times
Copy link
Copy Markdown
Contributor

Currently NMODL prints error messages if there are DERIVATIVE blocks with no associated solver method. However, the matexp solver removes the SOLVE statement from derivative blocks, but leaves the derivative blocks in case there is also a STEADYSTATE solver for the block, which causes false-positive errors.

Having a unsolved derivative block should be at most a warning, and the current error message was also unclear: "solver method '' not supported"

I fixed this so that now, if the solver method is unspecified, it emits no errors or warnings.

Currently NMODL prints error messages if there are DERIVATIVE blocks
with no associated solver method. The matexp solver removes the SOLVE
statement from derivative blocks, but leaves the derivative blocks in
case there is also a STEADYSTATE solver for the block, which causes
false-positive errors.

Having a unsolved derivative block should be at most a warning, and
the current error message was also unclear: "solver method '' not supported"

I fixed this so that now, if the solver method is unspecified,
it emits no errors or warnings.
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 6, 2026

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.30%. Comparing base (fe165eb) to head (2bb5193).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3741      +/-   ##
==========================================
- Coverage   68.31%   68.30%   -0.01%     
==========================================
  Files         689      689              
  Lines      111034   111034              
==========================================
- Hits        75855    75847       -8     
- Misses      35179    35187       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant