added examples/fitting/fitting_galsimfitter.py & examples/metacal/metacal_psf_response.py - #259
added examples/fitting/fitting_galsimfitter.py & examples/metacal/metacal_psf_response.py#259s-Sayan wants to merge 6 commits into
Conversation
…acal_psf_response.py
|
Thanks for the examples. Do you think a unit test could also be made for these? |
|
Hi Erin, yes — these are unit tests (similar to existing examples in your directory:
I've added explanations and expected outputs to the docstrings at the top of each file. Is there any other test in particular you'd like me to add? |
|
I meant real unit tests that assert correctness, as in ngmix/tests/ but never mind that for now. I'll see if these run for me when I get a chance. |
|
Ah I see, thanks! I didn't know about I can add something like that for testing the I also see you already have a unit test for the |
|
I don't think you would always expect c < cerr, so this unit test can fail (it did for me) |
|
These would be good checks I think I found setting the galaxy size to something smaller also helped (I used 128). Also I ran tests with |
|
Thanks! I have now updated the assertion conditions like that, in the same code I have also included the
I think I understand this but just to make sure — I use an Previously I was letting GalSim decide TL;DR: Is it a rule of thumb that |
|
Hey Erin, I have a quick question on how are we tracking if the
m: 0.00042347 +/- 0.000426856 (99.7% conf)
c: -1.71905e-06 +/- 8.53713e-06 (99.7% conf)
m: 0.000431744 +/- 0.00042775 (99.7% conf)
c: -1.82156e-06 +/- 8.555e-06 (99.7% conf)I have also tried crancking up the noise, the m and c values are higher, but they are comparable for the both settings. Maybe I should try some other test to see the improvement over |
|
azgauss is better when the PSF image is noisy |

New files
examples/fitting/fitting_galsimfitter.py— Demonstrates fitting withGalsimFitter, analogous to the existing fitter examples in the same directory.examples/metacal/metacal_psf_response.py— Demonstrates metacalibration usingGalsimFitterwithpsf='dilate', including PSF response corrections. Follows the structure ofexamples/metacal/metacal.py.Notes
Both examples are heavily inspired by the discussion in issue #255.