Fix: Use Enzyme instead of non-existent EnzymeRules package #1138
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the Enzyme extension that was recently merged to use the correct package name and import.
Problem
The current extension uses:
import EnzymeRules(incorrect - EnzymeRules is not a standalone package)EnzymeRules = "b2b7a20a-8ddc-4497-9a0a-d49b80ff0020"as weakdep (incorrect UUID)SciMLBaseEnzymeExt = "EnzymeRules"(incorrect)This causes the extension to fail to load because EnzymeRules is not a real package - it's part of Enzyme.
Solution
Correct the extension to use proper Enzyme setup:
import Enzyme: EnzymeRules✅Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9"as weakdep ✅SciMLBaseEnzymeExt = "Enzyme"✅Enzyme = "0.13"compat ✅Context
This fixes the AbstractSensitivityAlgorithm inactive_type rule for SciMLSensitivity.jl#1225 where Enzyme fails when
sensealgis passed toODEProblemconstructor instead ofsolve().The extension itself is correct - only the package references needed to be fixed.
🤖 Generated with Claude Code