-
Notifications
You must be signed in to change notification settings - Fork 170
remove .at()
#4547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
remove .at()
#4547
Conversation
got = dest_eval.evaluate(f_dest) | ||
assert np.allclose(got, expected, atol=atol) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test seems to unecessarily rely on point evaluation. In general we can expect that the interpolated functions agree with the linear expression everywhere on the domain, not just at the given coords
. We should consider changing this to assert errornorm(f_dest, expected) <= atol
where expected
is the ufl.Expr
.
Removes
Function.at()
method. This is to go in after the next release. Users should now usePointEvaluator
.