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

bug fixes in selection of MWS_NEARBY targets in data and MWS_WD,MWS_NEARBY,STD_WD in mocks #383

Merged
merged 5 commits into from
Sep 20, 2018

Conversation

moustakas
Copy link
Member

This PR fixes a small bug in how we were selecting MWS_NEARBY targets in the data: we were applying a parallax>10 cut rather than a (parallax+parallax_err)>10 cut (which I confirmed off-list with Boris Gaensicke and the MWS WG co-chairs).

More importantly this fixes a bug in select_mock_targets, which was using the MWS_MAIN/Galaxia mocks to select MWS_NEARBY, MWS_WD, and (consequently) STD_WD targets, which is wrong and which led to the 1000 standards/deg2 ridiculousness (see #377). With these changes I'm getting a much more sensible faint-star standard-star density of 90-100/deg2.

I also took this opportunity to deprecate the BOSS (SDSS color-color) selection of standard stars, which is what we were previously using as a temporary hack.

@sbailey merging this should be a high priority of the 18.9 software release, since the results are so much more sensible. And then I'll stop. I promise. Well, not really.

@geordie666 please make sure I didn't mess anything up in desitarget.cuts if you get a chance.

Copy link
Contributor

@sbailey sbailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Any objections @geordie666 ?

Copy link
Contributor

@geordie666 geordie666 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One request before merging:

Can you add a note in the docstring for isMWS_nearby noting which version of the wiki history the cuts are based on? That's the easiest way to distinguish a bug from "we haven't updated the code to reflect the wiki in a few weeks". Something like:

Notes:
- Current version (08/01/18) is version 126 on the wiki_.

@moustakas
Copy link
Member Author

I'm sorry, I was too hasty and merged before allowing Travis tests to complete. I'll fix the failures in a separate PR.

moustakas added a commit that referenced this pull request Sep 20, 2018
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.

3 participants