sot / kadi

Chandra commands and events
https://sot.github.io/kadi
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

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

Closed taldcroft closed 7 months ago

taldcroft commented 7 months ago

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

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. 
- [x] Linux

### Functional tests
<!-- Describe and document results of any functional tests, otherwise leave the text below -->
See the included notebook.
jeanconn commented 7 months ago

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

taldcroft commented 7 months ago

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 commented 7 months ago

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.