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

test_ra_dec_roll still failing #34

Closed
jeanconn opened this issue Sep 12, 2024 · 2 comments · Fixed by #35
Closed

test_ra_dec_roll still failing #34

jeanconn opened this issue Sep 12, 2024 · 2 comments · Fixed by #35
Labels

Comments

@jeanconn
Copy link
Contributor

jeanconn commented Sep 12, 2024

test_ra_dec_roll still failing.

I think for the case where there are no Constraints that no date is supplied here in get_star and the stars are moving.

agasc_stars = [agasc.get_star(agasc_id, date=date) for agasc_id in agasc_ids]

That suggests to me that if we just want to fix the test, we'd either need to open up the tolerances of the test or use mock to replace agasc.get_star with a mocked version that takes a pinned/fixed date. Otherwise find_attitude would need a new date to get through to here that isn't the Constraint date. I think.

@taldcroft
Copy link
Member

Otherwise find_attitude would need a new date to get through to here that isn't the Constraint date.

The Constraint date is indeed the way to constrain the date to a particular value. This is slightly unintuitive, but the alternative of providing a new date kwarg to find_attitude_solutions was worse because there would be two dates in the API.

@jeanconn
Copy link
Contributor Author

That's fine. I thought the point of that test was to run in an un-Constraint-ed way, but if it is fine to add one that's great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants