Repository navigation
Conversation
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
|
@mscroggs I think its a good idea to merge as soon as possible |
Agreed it would be sensible to merge this soon if someone can approve it |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #448 +/- ##
=======================================
Coverage 96.98% 96.98%
=======================================
Files 36 36
Lines 3577 3577
=======================================
Hits 3469 3469
Misses 108 108 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…is causing test failure on Mac?""" This reverts commit d2e0910.
|
I can't work out why these changes are causing a single test to fail on mac - I guess it must be related to the change in default values in this commit. I tried reverting just the changes in that commit that looked like they might make a difference and it still failed. Reverting that full commit now to see if it is any of these |
|
It looks like the tests are now passing here so I think the changes in #442 which pinned |
|
I forgot that that 46033b2 had been reverted so defaults are now back to what they were. I'll have a look through and see if any of the other changes in that commit to the actual docstrings should be retained. |
matt-graham
left a comment
There was a problem hiding this comment.
Thanks @mscroggs this was a mammoth effort but it's also great to have this resolved. I've added a bunch of suggestions which restore some of changes around not having defaults separately stated in docstrings that were reverted. I've also suggested adding some further loosenings of type hints to indicate accepting None values (generally for nside) where I noticed them though these are not all strictly relevant to docstrings here. There was a few instances of types having slipped back in to docstrings which I think may have come in within merge.
| @@ -205,36 +182,27 @@ | |||
| nside: int = None, | |||
There was a problem hiding this comment.
| nside: int = None, | |
| nside: int | None = None, |
| L: int, | ||
| spin: int = 0, | ||
| sampling: str = "mw", | ||
| nside: int = None, |
There was a problem hiding this comment.
| nside: int | None = None, |
| L: int, | ||
| spin: int = 0, | ||
| sampling: str = "mw", | ||
| nside: int = None, |
There was a problem hiding this comment.
| nside: int | None = None, |
| spin: int = 0, | ||
| sampling: str = "mw", | ||
| method: str = "sov_fft_vectorized", | ||
| nside: int = None, |
There was a problem hiding this comment.
| nside: int | None = None, |
| @@ -713,36 +645,28 @@ | |||
| nside: int, | |||
There was a problem hiding this comment.
| nside: int, | |
| nside: int | None, |
| return sampling.lower() in ("mw", "mwss", "dh", "cc", "f2") | ||
|
|
||
|
|
||
| def ftm_shape(L: int, sampling: str = "mw", nside: int = None) -> tuple[int, int]: |
There was a problem hiding this comment.
| def ftm_shape(L: int, sampling: str = "mw", nside: int | None = None) -> tuple[int, int]: |
| return 4 * nside | ||
|
|
||
|
|
||
| def nphi_ring(t: int, nside: int = None) -> int: |
There was a problem hiding this comment.
| def nphi_ring(t: int, nside: int | None = None) -> int: |
| return np.exp(sign * 1j * np.arange(m_start_ind, L) * phi_offset) | ||
|
|
||
|
|
||
| def f_shape(L: int = None, sampling: str = "mw", nside: int = None) -> tuple[int]: |
There was a problem hiding this comment.
| def f_shape(L: int | None = None, sampling: str = "mw", nside: int | None = None) -> tuple[int]: |
| ftm_in: Intermediate coefficients with indexing :math:`[\theta, m]`. | ||
| beta_in: Array of polar angles in radians. | ||
| L: Harmonic band-limit. | ||
| spin: Harmonic spin. Defaults to 0. |
There was a problem hiding this comment.
| spin: Harmonic spin. Defaults to 0. | |
| spin: Harmonic spin. |
| sampling: Sampling scheme. Supported sampling schemes include | ||
| {"mwss", "dh", "gl", "healpix", "cc", "f2"}. | ||
| nside: HEALPix Nside resolution parameter. Only required | ||
| if sampling="healpix". Defaults to None. |
There was a problem hiding this comment.
| if sampling="healpix". Defaults to None. | |
| if sampling="healpix". |
There was a problem hiding this comment.
Thanks @mscroggs this was a mammoth effort but it's also great to have this resolved. I've added a bunch of suggestions which restore some of changes around not having defaults separately stated in docstrings that were reverted. I've also suggested adding some further loosenings of type hints to indicate accepting None values (generally for nside) where I noticed them though these are not all strictly relevant to docstrings here. There was a few instances of types having slipped back in to docstrings which I think may have come in within merge. None of this is a blocker to merging so approving now.
EDIT: GitHub errored when I first posted review but looks like it has ended up doubling up this comment.
Uh oh!
There was an error while loading. Please reload this page.