-
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
enable automatic DFT decimation by default #1732
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #1732 +/- ##
==========================================
+ Coverage 73.39% 73.46% +0.07%
==========================================
Files 13 13
Lines 4540 4557 +17
==========================================
+ Hits 3332 3348 +16
- Misses 1208 1209 +1
|
Seems a bit odd that so many of the existing tests don't support decimation. Aren't all the tests involving DFTs using band-limited sources? |
Almost all the existing unit tests in which automatic decimation had to be disabled in this PR involved comparing results based on DFT fields to hard-coded values which were generated without decimation. I suppose we could update all unit tests which involve DFT fields (a large fraction of the overall total) to use decimation to possibly speed things up but that would be a bit of work. |
…last array element
This is working now. I verified that the
|
* automatic DFT decimation * disable automatic decimation for certain tests * fixes * disable decimation for more tests * compute the maximum frequency of the DFT monitor rather than use the last array element * replace get_width with get_fwidth and use analytic formula for gaussian_src_time * add missing 2pi factor to gaussian_src_time::get_fwidth * add factor of 2 to gaussian_src_time::get_fwidth(double tol) * various fixes * disable automatic decimation for test_n2f_periodic.py * switch ceil to floor when setting decimation_factor
* automatic DFT decimation * disable automatic decimation for certain tests * fixes * disable decimation for more tests * compute the maximum frequency of the DFT monitor rather than use the last array element * replace get_width with get_fwidth and use analytic formula for gaussian_src_time * add missing 2pi factor to gaussian_src_time::get_fwidth * add factor of 2 to gaussian_src_time::get_fwidth(double tol) * various fixes * disable automatic decimation for test_n2f_periodic.py * switch ceil to floor when setting decimation_factor
Closes #1731.