Skip to content

Conversation

ChrisRackauckas
Copy link
Member

Summary

Fixes deprecation warnings that occur when running tests with --depwarn=error by updating Latexify calls to use the new parameter syntax.

Problem

ODEProblemLibrary was failing tests with --depwarn=error due to deprecated cdot parameter usage in Latexify:

ERROR: Latexify received the deprecated keyword argument cdot = false and 
converted it to mult_symbol = "". Pass the latter directly to remove this warning.

Solution

  • Updated all 9 latexify() calls in strange_attractors.jl documentation strings
  • Changed from $(latexify(system)) to $(latexify(system; mult_symbol=""))
  • This replaces the deprecated cdot=false parameter with the new mult_symbol="" parameter

Affected Systems

Fixed documentation for these strange attractors:

  • Thomas' cyclically symmetric attractor
  • Lorenz equations
  • Aizawa equations
  • Dadras equations
  • Chen equations
  • Rössler equations
  • Rabinovich–Fabrikant equations
  • Sprott equations
  • Hindmarsh–Rose equations

Testing

  • ✅ ODEProblemLibrary tests now pass with --depwarn=error
  • ✅ All LaTeX documentation formatting preserved
  • ✅ No functional changes to mathematical representations
  • ✅ ModelingToolkit v10.14.0 compatibility verified

Backward Compatibility

This change maintains full backward compatibility while addressing the deprecation warnings from the Latexify package.

🤖 Generated with Claude Code

This commit fixes deprecation warnings that occur when running tests with
`--depwarn=error` by updating all `latexify()` calls to use the new
`mult_symbol=""` parameter instead of the deprecated `cdot=false`.

## Issue Fixed
- **Latexify deprecation**: Changed from deprecated `cdot=false` to `mult_symbol=""`
- Affected 9 `latexify()` calls in `strange_attractors.jl` documentation strings

## Error Message
```
ERROR: Latexify received the deprecated keyword argument cdot = false and
converted it to mult_symbol = "". Pass the latter directly to remove this warning.
```

## Changes Made
- Updated all `$(latexify(system))` calls to `$(latexify(system; mult_symbol=""))`
- Fixed calls for: thomas, lorenz, aizawa, dadras, chen, rossler,
  rabinovich_fabrikant, sprott, and hindmarsh_rose attractors

## Verification
- ODEProblemLibrary tests now pass with `--depwarn=error`
- All strange attractor documentation maintains proper LaTeX formatting
- No functional changes to the mathematical representations

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@ChrisRackauckas ChrisRackauckas merged commit dd13195 into master Jul 31, 2025
14 of 19 checks passed
@ChrisRackauckas ChrisRackauckas deleted the fix-latexify-deprecation-warnings branch July 31, 2025 08:21
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.

2 participants