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
JaxComplexPolySlab
support
#1698
Conversation
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.
Wow, this is looking really good! Thanks @yaugenst-flex . I think this turned out to be a lot more changes than I anticipated. So this pretty much makes JaxPolySlab dilation and sidewall operations traceable?
Well, at least those that are used in the polyslab splitting routine, yeah. Although |
8a01af0
to
b64717f
Compare
0ea06dc
to
6edf491
Compare
@@ -1913,6 +1930,10 @@ def test_sidewall_angle_validator(log_capture, sidewall_angle, log_expected): # | |||
|
|||
jax_polyslab1 = JaxPolySlab(axis=POLYSLAB_AXIS, vertices=VERTICES, slab_bounds=(-1, 1)) | |||
|
|||
msg = "'JaxPolySlab' does not yet perform the full adjoint gradient treatment " | |||
for entry in td.log._static_cache: |
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.
we have an assert_log_level
and AssertLogLevel
(context manager version) in tests/utils
. But this is probably fine.
Closes #1675
Initial version of
JaxComplexPolySlab
. Works in principle, but still needs tests. Supports differentiation w.r.t. bothvertices
andslab_bounds
.