-
Notifications
You must be signed in to change notification settings - Fork 3
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
Repo cleanup pretag #165
Repo cleanup pretag #165
Conversation
still working on one last edit... |
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.
Looks good, I only have very minor queries. Good to merge.
Y = np.vstack([self.Y(key1).diagonal(), self.Y(key2).diagonal()]) | ||
|
||
# Second: check cache for Y | ||
matches = [np.isclose(Y, y).all() for y in self._identity_Y.values()] |
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.
This is probably fine, but an alternative would be to hash the array using md5sum.
@@ -241,6 +242,10 @@ def _blpair_to_antnums(blpair): | |||
ant2 = int(np.floor(blpair / 1e6 - ant1*1e3)) | |||
ant3 = int(np.floor(blpair / 1e3 - ant1*1e6 - ant2*1e3)) | |||
ant4 = int(np.floor(blpair - ant1*1e9 - ant2*1e6 - ant3*1e3)) | |||
ant1 -= 100 |
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.
Why are these on separate lines? They could just be put into the lines above.
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 don't think so, see how ant2 is dependent on ant1 and so on..
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.
Oops, my bad.
Gv = self.get_G(key1, key2) | ||
Hv = self.get_H(key1, key2, sampling=sampling) | ||
# cache it | ||
self._identity_Y[(key1, key2)] = Y |
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.
Just for clarity: This is done per baseline-pair, and not per blpair-time? So the flags still have to remain time-independent?
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.
Yeah, done per-baselinepair (not time). flags still need to remain time-independent
A few minor changes addressing issues in
UVPSpec
andPSpecData
before we tag a release