Skip to content
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

Make contraint functions for periodic designs compatible with autograd #2518

Merged
merged 2 commits into from
May 18, 2023

Conversation

mawc2019
Copy link
Contributor

PR #2465 introduced a bug that made constraint functions incompatible with autograd, although the forward run of those constraint functions does not fail. This PR fixes the bug and add some tests to check the gradients of the constraint functions also observe periodicity.

@codecov-commenter
Copy link

Codecov Report

Merging #2518 (b87cb53) into master (28ee9f6) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##           master    #2518      +/-   ##
==========================================
- Coverage   73.92%   73.90%   -0.02%     
==========================================
  Files          18       18              
  Lines        5296     5292       -4     
==========================================
- Hits         3915     3911       -4     
  Misses       1381     1381              
Impacted Files Coverage Δ
python/adjoint/filters.py 79.47% <100.00%> (-0.43%) ⬇️

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.

3 participants