Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Generate Confusion matrix related to spectral types #359

Merged
merged 4 commits into from May 9, 2018
Merged

Conversation

profxj
Copy link
Contributor

@profxj profxj commented May 9, 2018

Compares truth vs type recovered from RedRock.

Generates a dict holding the matrix.

See https://github.com/desihub/desisim/blob/confuse_me/doc/nb/Confusion_matrix_spectypes.ipynb
for usage.

Have tested on 18.3 mini-test with:

from astropy.table import Table
from desisim.spec_qa import redshifts as dsqa_z

simz_tab = Table.read('truth.fits')
zcat = Table.read('zcatalog-mini.fits')

results = dsqa_z.spectype_confusion(simz_tab, zb_tab=zcat)

Addresses Issue #348

@sbailey sbailey merged commit 632b104 into master May 9, 2018
@sbailey sbailey deleted the confuse_me branch May 9, 2018 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants