Stokes parameters polarization measurement#246
Stokes parameters polarization measurement#246nmik wants to merge 33 commits intocositools:developfrom
Conversation
Codecov Report❌ Patch coverage is
... and 37 files with indirect coverage changes 🚀 New features to boost your workflow:
|
|
Closes #209 |
|
@eneights I think you were looking at this PR, is that correct? |
|
@israelmcmc Yes, I started looking at it and have needed to focus on other things, but it's on my to do list. Sorry for the delay! |
|
Thanks for confirming @eneights. No worries, I just wanted to make sure the assignee and status label were correct. |
|
This looks good! I made some minor changes, which I'm creating a pull request for into Michela's branch once I figure out github. @nmik once that PR is merged into your branch, this PR will automatically update with those changes For reference, this is how the results for the ASAD and Stokes methods compare: |
|
@nmik I'm not sure what I did but I guess I pushed the changes into your branch. Can you take a look and make sure you're okay with them? |
|
The unit test was using an outdated response file. I switched it to the current polarization response in |
|
Hi @nmik, can you please add a way to change the ASAD bin sizes/edges? This seems to currently always default to 20 bins, but should be adjustable. The unit test is still throwing an error because there are NaNs in the ASAD, which is due to there being too many bins for the coarse unit test response. Thank you! |
…o being hardcoded to 20 bins
…o being hardcoded to 20 bins
|
Thanks for making this change @nmik! I still don't see a way for the user to specify the number of bins or bin edges, which is necessary to get the unit test to work with that extremely coarse response. There are currently empty azimuthal scattering angle bins, and it's necessary to use fewer bins in the ASAD than in the response. For example, I need to use 10 bins in my ASAD method unit test, while there are 12 in the unit test response. A plot is still being produced automatically in the unit test, with no option to disable it. I think it comes from line 458 in polarization_stokes.py. Could you please add a show_plots flag in init() for the user to choose whether to show the plots that are generated? Maybe this can also apply for line 483. |














This script is the starting point to have a Stokes parameters formalism to compute the polarization from a source (with known location in the sky).