Repository navigation
Import Symbolics.@wrapped so MethodOfLines precompiles - #667
utkuyilmaz1903 wants to merge 3 commits into
Conversation
|
The benchmark job fails while precompiling the master baseline, before it reaches this PR. Since this PR fixes that exact master precompile failure, the benchmark cannot pass until the fix is merged. |
|
@ChrisRackauckas Looks like SymbolicUtils 4.46.0 is the trigger. After updating the registry, a fresh environment with this branch resolves Symbolics 7.36.0 + SymbolicUtils 4.46.0 and reproduces the same |
| using SymbolicUtils: @rule, hasmetadata, setmetadata, substitute, term | ||
| import Symbolics | ||
| using Symbolics: @variables, Differential, Equation, Integral, Num, terms | ||
| using Symbolics: @variables, @wrapped, Differential, Equation, Integral, Num, terms |
There was a problem hiding this comment.
what uses this? We should probably just make it public API upstream instead of specializing it here.
There was a problem hiding this comment.
it's from the @register_array_symbolic calls in #655 that macro expands to a bare @wrapped in the calling module. it's already exported actually, @register_symbolic qualifies it but the array version doesn't. should just be qualified upstream, but until then we need the import here.
|
Fixed upstream. |
|
thanks. then we'll wait for the Symbolics release, and then I'll retest the other array discretization PRs against clean CI. |
|
It should already be released. |
#655 calls
Symbolics.@register_array_symbolicfor the array integral helpers. That macro escapes@wrappedinto this module, and we only import a handful of Symbolics names, sousing MethodOfLinesdies withUndefVarError: @wrapped not defined.Docs, downgrade, and the benchmark job all hit it. Benchmarks fail on
MethodOfLines@masterbefore they even look at a feature branch.This just adds
@wrappedto the existingusing Symbolics:list.