-
Notifications
You must be signed in to change notification settings - Fork 4
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
SNR flag #42
Comments
There may be |
It does, I have found a few. Jose suggested removing the NaNs before making the flag cuts, but I am having some issues getting that to work. This is the error I'm getting for that: |
Ok I just checked - the NaN check was only in place for The flag cuts don't currently have this check. So if you are creating a "mask" which contains
What this does is take the existing mask and add new mask values for this specific flag ( |
I don't make the mask until after the greater than statement, so I get the same error when I put that in. I believe it is working and just ignoring the NaNs. Should I just suppress the error and move on for now? or try to figure it out? |
Works for version The issue came from using NaNs with comparison operators. NaNs are dealt with by equating them to dummy variables then comparing them to cut_off_value. |
I added in the SNR ratio flag to cut data <9. 840 clusters are being removed. I am trying to figure out why the RuntimeWarning is happening.
Removed 9 clusters due to
bad_mode
flag of<class 'bool'>
Removed 15 clusters due to
overlap_r500
flag of<class 'bool'>
Removed 7 clusters due to
overlap_r2500
flag of<class 'bool'>
Removed 41 clusters due to
edge_r2500
flag of<class 'bool'>
Removed 27 clusters due to
overlap_bkgd
flag of<class 'bool'>
Removed 52 clusters due to
edge_bkgd
flag of<class 'bool'>
Removed 39 clusters due to
masked
flag of<class 'bool'>
/home/paige/anaconda3/lib/python3.7/site-packages/astropy/table/column.py:984: RuntimeWarning: invalid value encountered in less
result = getattr(super(), op)(other)
Removed 840 clusters due to
500_kiloparsecs_SNR
flag of<class 'str'>
Removed 0 clusters due to
Redshift
flag of<class 'str'>
NOTE:
Removed
counts may be redundant, as some data fail multiple flags.Accepted 191 data out of 1092
mean x error: 8.974993467153285e+42
mean y error: 4.850821240875912
The text was updated successfully, but these errors were encountered: