Skip to content

Fix #4232 Resolve Symbol keys in initial_conditions, guesses, and bindings#4291

Open
Ambar-13 wants to merge 3 commits into
SciML:masterfrom
Ambar-13:fix-4232-symbol-keys
Open

Fix #4232 Resolve Symbol keys in initial_conditions, guesses, and bindings#4291
Ambar-13 wants to merge 3 commits into
SciML:masterfrom
Ambar-13:fix-4232-symbol-keys

Conversation

@Ambar-13

@Ambar-13 Ambar-13 commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

Passing Symbol keys (e.g. [:X => 1.0]) to initial_conditions, guesses, or bindings in the System constructor errored with MethodError: no method matching validate_atomic_array_key(::Symbol). (#4232)

Added a defsdict overload that resolves Symbol keys to symbolic variables via the existing var_to_name dict before inserting into the SymmapT.

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

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