-
Notifications
You must be signed in to change notification settings - Fork 2
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
Ant metrics speedups #402
Ant metrics speedups #402
Conversation
Codecov Report
@@ Coverage Diff @@
## master #402 +/- ##
==========================================
- Coverage 97.08% 97.05% -0.03%
==========================================
Files 10 10
Lines 3288 3299 +11
==========================================
+ Hits 3192 3202 +10
- Misses 96 97 +1
Continue to review full report at Codecov.
|
…dead antenna are not included
probably should find a way to test this functionality
For the record, while this PR tries to maintain the same algorithm I believe it is slightly different. Here's the output on four files from 2459122 before this PR (it took 22:30 with
And here's the output from after this PR (it look only 1:45 with
The differences in the corr_metric zscores are entirely attributable to the change to loading whole files and then computing the correlation statistics, rather than loading baselines for all files simultaneously. This speeds up I/O significantly. There also appeared to be a small (~few %) difference in the z-scores for the cross-pol metrics even when performed on a single file. However, since same antennas are being flagged in the same order, I'm inclined to trust the newer, simpler algorithm more. |
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.
I did a more careful read-through and I feel comfortable merging this. I'll spend some time tomorrow updating a few of the tests to get a bit better coverage, but I think we can go ahead and start implementing this version now.
This PR has a number of changes that make ant_metrics go faster:
np.nan
s to represent flagged antennas.