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

Change limits in SPM and off-nom-roll validators to fix violations #305

Merged
merged 2 commits into from
Dec 7, 2023

Conversation

taldcroft
Copy link
Member

@taldcroft taldcroft commented Dec 2, 2023

Description

This PR opens up a couple of validation limits to remove spurious violations.

For the sun position monitor, the original tolerance of 300 seconds was a little too tight and a few cases of up to 360 seconds occurred. This is related to the difference between predicted eclipse exit times and what the OBC actually did on orbit. This increases the limit to 400 sec.

For off-nominal roll, the error due to sampling the maneuver attitude at only 5-minute bins is a bit larger than was originally assumed. Increasing the tolerance during NMAN from 10 deg to 12 deg removes violations from a 200 day sample.

Interface impacts

None.

Testing

Unit tests

  • Mac (done at the first commit before fixing the notebook name)
    This requires the file kadi/commands/test/conftest.py from e99d43e. This file was used in testing and inadvertently left out of the commits.
(ska3-perf) ➜  kadi git:(fix-spm-off-nom-roll-violations) git rev-parse HEAD      
467afb24b99214851778deb97789d5b508032034
(ska3-perf) ➜  kadi git:(fix-spm-off-nom-roll-violations) pytest
==================================================== test session starts =====================================================
platform darwin -- Python 3.10.8, pytest-7.2.1, pluggy-1.0.0
rootdir: /Users/aldcroft/git, configfile: pytest.ini
plugins: timeout-2.1.0, anyio-3.6.2
collected 219 items                                                                                                          

kadi/commands/tests/test_commands.py ...........................................................................       [ 34%]
kadi/commands/tests/test_states.py ......................x.............................................x.............. [ 72%]
.........                                                                                                              [ 76%]
kadi/commands/tests/test_validate.py ....................                                                              [ 85%]
kadi/tests/test_events.py ..........                                                                                   [ 89%]
kadi/tests/test_occweb.py ......................                                                                       [100%]

========================================= 217 passed, 2 xfailed in 94.04s (0:01:34) ==========================================

Independent check of unit tests by Jean with that conftest.py and with a ska3-masters environment and dev/local versions of chandra_aca, ska_sun, and chandra_maneuver in PYTHONPATH.

  • Linux

Functional tests

See the included notebook.

@taldcroft taldcroft marked this pull request as ready for review December 2, 2023 15:18
@taldcroft taldcroft changed the title Change limits in SPM and off-nom-roll validators to fix validation violations Change limits in SPM and off-nom-roll validators to fix violations Dec 2, 2023
@taldcroft taldcroft requested a review from jeanconn December 2, 2023 15:18
Base automatically changed from improve-off-nom-roll-state-accuracy to master December 5, 2023 23:45
@jeanconn
Copy link
Contributor

jeanconn commented Dec 6, 2023

Technically I think this needs a rebase to get that conftest.py and pass tests.

@taldcroft
Copy link
Member Author

Technically I think this needs a rebase to get that conftest.py and pass tests.

conftest.py is in master so when this is merged the master branch will pass. I've updated the documentation to reflect that the testing results depend on having that file from master in the correct place.

@jeanconn
Copy link
Contributor

jeanconn commented Dec 7, 2023

That's fine. My process is always just to check out the PR and run tests; so for this I'll copy the conftest and run tests if that's the only change that is missing for tests to pass.

@taldcroft taldcroft merged commit 1636571 into master Dec 7, 2023
2 checks passed
@taldcroft taldcroft deleted the fix-spm-off-nom-roll-violations branch December 7, 2023 15:33
This was referenced Jan 9, 2024
@javierggt javierggt mentioned this pull request Feb 6, 2024
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