-
Notifications
You must be signed in to change notification settings - Fork 629
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
Fix the shapes of 2d filters #2390
Conversation
The pre-commit check is failing which likely means you forgot to first install the See: https://meep.readthedocs.io/en/latest/Build_From_Source/#meep-for-developers |
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master #2390 +/- ##
==========================================
- Coverage 72.57% 72.56% -0.01%
==========================================
Files 17 17
Lines 5166 5165 -1
==========================================
- Hits 3749 3748 -1
Misses 1417 1417
|
I just installed the |
The error in the failed test is as follows.
This error is related to the code below when single precision is used.
Increasing the tolerance |
Sure, a 5% increase in the tolerance is fine. |
LGTM! |
When you get a chance, try re-running the tutorials so that we can update the images (which will presumably change slightly). |
As mentioned here, the 2d filters in
filters.py
should have kernels with circular boundaries, but these boundaries are rectangular in the current master branch. This PR makes them circular. In addition, this PR adds around
operation preceding eachint
operation infilters.py
to avoid unexpected results, as mentioned here.