Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add new diagnostics! #98

Open
1 of 7 tasks
sweverett opened this issue Oct 20, 2022 · 4 comments
Open
1 of 7 tasks

Add new diagnostics! #98

sweverett opened this issue Oct 20, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@sweverett
Copy link
Collaborator

sweverett commented Oct 20, 2022

We should add a new suite of diagnostic tests & plots to help ensure we understand the current state of the pipeline. Here I will add a running list of things we want to add, per module:

Medsmaker:

  • PSF e1/e2 across the focal plane (PIFF kind of does this but the plots are hard to read / interpret)
  • Stack of PSF residuals across all stars (@mcclearyj)

Metacal:

  • Binned shear calibration for g1/g2 (exists but needs to be updated)
  • Binned shear calibration for gtan/gx (exists but needs to be turned into a script)
  • Pujol and variant tests (@emhuff @andrevitorelli)

Shear Profile

  • Causal graph of matches catalog containing truth + SE + mcal + annular cols

Analysis:

Anything suggested by others in the comments will be added above.

@sweverett sweverett added the enhancement New feature or request label Oct 20, 2022
@sweverett
Copy link
Collaborator Author

Another thing - while this is not the current convention, I suggest that we name all files that run these diagnostics to follow the convention of diagnostic_{name}.py in the submodule directory it pertains to. We should edit existing diagnostics to follow this convention as well.

@mcclearyj
Copy link
Collaborator

The master_psf_diagnostic.py script does automatically make a residual star image. Example here:
piff_star_psf_resid

The master_psf_diagnostic.py code also outputs the results of HSM fits to stars and PSF models to file here:

def make_output_table(makers=None,prefix=None,outfile='hsm_fit_result.fits'):

@sweverett
Copy link
Collaborator Author

Is this residual for one star or for the stack of all of them? That is what I intended for the test

@mcclearyj
Copy link
Collaborator

It is the mean residual:

def make_resid_plot(psf=None,stars=None,outname='star_psf_resid.png',vb=False):

If you are after a stacked residual, that should be easy to implement.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants