Closed adeliegorce closed 1 month ago
Attention: Patch coverage is 97.72727%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 96.09%. Comparing base (
8950367
) to head (7a030d4
).
Files | Patch % | Lines |
---|---|---|
hera_pspec/pstokes.py | 97.72% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hi @jsdillon, I made the requested changes. Let me know if you're happy with the new version.
Done!
Looks good, thanks @adeliegorce!
This PR introduces some changes to the
pstokes
module for two purposespol_convention
attribute ofUVData
objects (see this PR) when constructing pseudo-Stokes polarizations whilst ensuring backwards compatibility (if there is nopol_convention
, then there is a warning andavg
is assumed). This is commit 6ffd0dc._combine_pol_arrays
(final name still open to debate) which takes lists of data, flags, and nsamples arrays and combines them into pseudo-Stokes following the appropriatepol_convention
(i.e.avg
andsum
). Although I see how useful this method can be, it does make the code slightly heavy so, reviewers, please let me know if you have any suggestions on how to make things cleaner. This is commit 2601670. I added new tests and modified existing ones accordingly.