Skip to content

Fix deprecation warnings#158

Merged
ChrisRackauckas merged 1 commit intoSciML:masterfrom
ChrisRackauckas-Claude:fix-deprecation-warnings
Feb 9, 2026
Merged

Fix deprecation warnings#158
ChrisRackauckas merged 1 commit intoSciML:masterfrom
ChrisRackauckas-Claude:fix-deprecation-warnings

Conversation

@ChrisRackauckas-Claude
Copy link
Copy Markdown
Contributor

Summary

  • Replace @warn with Base.depwarn in read_cellml so the deprecation is properly caught by --depwarn=error. Previously, using read_cellml only emitted a logging warning that was invisible to Julia's deprecation warning system.
  • Use !== instead of != for nothing comparison in update_list! for type-stable comparison.

Testing

All tests pass with Pkg.test(; julia_args=["--depwarn=error"]) (17/17 tests pass across QA, beeler, and noble_1962 test sets).

Upstream dependency notes

No upstream deprecation issues found. The package already uses current ModelingToolkit v10 APIs:

  • System (not ODESystem)
  • mtkcompile (not structural_simplify)
  • unknowns (not states)

ModelingToolkit.defaults, ModelingToolkit.isparameter, @set! on system fields, and the ODEProblem constructor with combined pairs array all work without deprecation warnings on the current dependency versions.

🤖 Generated with Claude Code

- Replace `@warn` with `Base.depwarn` in `read_cellml` so the deprecation
  is properly caught by `--depwarn=error`
- Use `!==` instead of `!=` for `nothing` comparison in `update_list!`
  for type-stable comparison

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ChrisRackauckas ChrisRackauckas merged commit 84205fd into SciML:master Feb 9, 2026
8 of 10 checks passed
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.

3 participants