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

Add ZWARN statistics #19

Open
londumas opened this issue Aug 14, 2018 · 0 comments
Open

Add ZWARN statistics #19

londumas opened this issue Aug 14, 2018 · 0 comments

Comments

@londumas
Copy link

I put this comment on the minitest, to keep track:

Another metric that would be very useful in QA, both for simulated and true data,
would be a simple table, maybe after cell 58 about the different ZWARN flags.
It would help track what are causing ZWARN flags to be nonzero
It could simply be something of that kind:

import redrock.zwarning
flags = redrock.zwarning.ZWarningMask().flags

to_print = "FLAG "
for objtype in set(truth['TEMPLATETYPE']):
    to_print += objtype+' | '
print(to_print)
for objtype in set(truth['TEMPLATETYPE']):
    to_print = flags_name + ' | '
    for i in range(11):
        w = (dsq_z['TEMPLATETYPE']==objtype) & ((dsq_z['ZWARN']&2**i)>0)
        to_print += str(w.sum())+' | '
    print(to_print)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant