Skip to content

Conversation

@ChrisRackauckas-Claude
Copy link

Summary

  • Fix WENOScheme function to accept epsilon as a keyword argument, matching the documentation and docstring

The docstring explicitly said "## Keyword Arguments" and documented epsilon as a keyword argument, but the function signature was WENOScheme(epsilon = 1e-6) (positional) instead of WENOScheme(; epsilon = 1e-6) (keyword).

This caused users to get MethodError: no method matching WENOScheme(; epsilon::Float64) when following the documentation.

Fixes #472

Test plan

  • Verified WENOScheme(epsilon=1e-6) now works (was failing before)
  • Verified WENOScheme() still works with default value
  • Verified existing WENO tests pass with the fix

cc @ChrisRackauckas

🤖 Generated with Claude Code

The documentation and docstring stated that epsilon should be a keyword
argument, but the function was defined with a positional argument.
This caused a MethodError when users tried to use WENOScheme(epsilon=1e-6)
as shown in the documentation.

Fixes SciML#472

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ChrisRackauckas ChrisRackauckas merged commit 48e6fbe into SciML:master Dec 30, 2025
53 of 66 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.

Unknown epsilon keyword in WENOScheme()

3 participants