Skip to content

Remove constraint violations#88

Merged
taldcroft merged 2 commits intomasterfrom
remove-constraints
Jan 28, 2025
Merged

Remove constraint violations#88
taldcroft merged 2 commits intomasterfrom
remove-constraints

Conversation

@taldcroft
Copy link
Copy Markdown
Member

@taldcroft taldcroft commented Dec 11, 2024

Description

The constraint violations reported in Replan Central are no longer valid:

  • SCS-107 no longer stops maneuvers, so the attitude-based and momentum violations are incorrect.
  • Thermal violations are likewise inaccurate.
  • Bright star hold is no longer allowed as a safing action; instead Normal Sun Mode is activated if stars are lost. That means the constraint violations for that attitude are not relevant.

The expectation is that the load product generation will remove these constraints from the report in a future release. This PR fixes Replan Central in advance of that change.

In the test outputs below, the Earth Violation and High Momentum constraint events (seen in flight) are no longer generated:

The red notices in the test output for HRC proxy data stale, P4GM data stale, and P41GM data stale are expected as the test setup used stale data for these.

Interface impacts

Incorrect constraint events are removed.

Functional testing

This testing was run with data files left over from #87 (which is why there are warnings about stale data unrelated to the changes in the PR).

From the git repository in this branch:

# Environment setup
export ska_dir=/export/tom/arc3_test
source ${ska_dir}/bin/activate
source ${ska_dir}/bin/ska_envs.sh

# Make sure the outputs are going to an expected directory
echo $SKA_DATA

# Install
make install

# Run through perl jobs in task schedule. Python jobs (data collection, timelines) not impacted.
# This uses data files left over from PR 87.
${SKA_SHARE}/arc3/get_iFOT_events.pl
${SKA_SHARE}/arc3/get_web_content.pl
${SKA_SHARE}/arc3/arc.pl
${SKA_SHARE}/arc3/arc.pl -config arc3:arc_ops

# Copy test and current flight outputs for PR test documentation
mkdir -p /proj/sot/ska/www/ASPECT/tests/arc/pr88/arc3-test
rsync -av $SKA/www/ASPECT/arc3/ /proj/sot/ska/www/ASPECT/tests/arc/pr88/arc3-test/
rsync -av /proj/sot/ska/ASPECT/arc3/  /proj/sot/ska/www/ASPECT/tests/arc/pr88/arc3-flight/

@jeanconn
Copy link
Copy Markdown
Contributor

I think get_obsid_event can go too.

@taldcroft taldcroft requested a review from jeanconn January 28, 2025 11:50
@jeanconn jeanconn requested a review from Copilot January 28, 2025 17:56
@jeanconn
Copy link
Copy Markdown
Contributor

I assume the "HRC proxy data stale
P4GM data stale
P41GM data stale"
on the test page is unrelated, but since I don't understand it based on the test setup, I can't approve the PR. This probably just needs a new sync of the data and another run of the test code.

Copy link
Copy Markdown
Contributor

@jeanconn jeanconn left a comment

Choose a reason for hiding this comment

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

Test output shows unexplained missing/stale data.

@taldcroft
Copy link
Copy Markdown
Member Author

I assume the "HRC proxy data stale P4GM data stale P41GM data stale" on the test page is unrelated, but since I don't understand it based on the test setup, I can't approve the PR. This probably just needs a new sync of the data and another run of the test code.

The test functional docs say This uses data files left over from PR 87. This explains the stale data as being expected and unrelated to the PR.

@jeanconn
Copy link
Copy Markdown
Contributor

OK, though I think test setup comments like that should probably live outside of the copy-paste of shell commands and test deviations should be called out in the description.

@taldcroft taldcroft merged commit b7ab49c into master Jan 28, 2025
@taldcroft taldcroft deleted the remove-constraints branch January 28, 2025 22:39
@taldcroft taldcroft review requested due to automatic review settings March 23, 2026 21:55
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