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 a test of calc_p_safe for two identical catalogs #322

Merged
merged 1 commit into from
Feb 12, 2020

Conversation

taldcroft
Copy link
Member

@taldcroft taldcroft commented Feb 12, 2020

Description

For two catalogs that came about in different ways but with the same stars and halfwidths, confirm that the p_safe values are identical. Because the p_safe calculation is independent of how the catalog is constructed this must succeed, but we check it anyway.

Also fixes an unrelated leftover comment.

Testing

  • Passes unit tests on MacOS

@taldcroft taldcroft requested a review from jeanconn February 12, 2020 01:31
assert np.all(aca2.acqs['halfw'] == aca.acqs['halfw'])

assert aca.acqs.calc_p_safe() == aca2.acqs.calc_p_safe()
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks @taldcroft . And I would have tried to come back to do this myself (my belt-and-suspenders thinking on this anyway) but thanks for tossing it in!

@taldcroft taldcroft merged commit 78611dd into master Feb 12, 2020
@taldcroft taldcroft deleted the fix-opt-halfw branch February 12, 2020 11:44
@javierggt javierggt mentioned this pull request Apr 6, 2021
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.

2 participants