Merge each OBS command from an obsid-changing CMD_EVT into the prior …#382
Merged
Merge each OBS command from an obsid-changing CMD_EVT into the prior …#382
Conversation
Contributor
|
Is this also ready for review? |
Member
Author
|
The actual code is ready. I'm going to add a quick test right now. |
Member
Author
|
@jeanconn - ready for review! |
17e1881 to
e59cf8b
Compare
2 tasks
e59cf8b to
c874604
Compare
Member
Author
|
Rebased and retested. |
jeanconn
reviewed
Mar 25, 2026
jeanconn
reviewed
Mar 25, 2026
|
|
||
| # Now drop the current split observation that starts at the obsid change time. | ||
| # The `obs_stop` time (and all other params) are the same so just taking the | ||
| # first obs is all we need (no need to set obs_stop). |
Contributor
There was a problem hiding this comment.
I could use a quick explanation of this "no need to set obs_stop" part, as copilot and I were both confused by that one.
jeanconn
approved these changes
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The processing to generate kadi observations (OBS commands) splits an observation when the obsid changes. This allows capturing undercover observations etc. However, manually commanded obsid changes following an SCS-107 or an ECS measurement are somewhat different because their timing is unrelated to normal observation flow (maneuver => Kalman dwell).
In using the new scheduled obsid capability in practice, it became apparent that splitting an observation for a manual obsid change was undesirable. A query for a particular scheduled obsid is expected to return the single entire observation, not the two splits.
This PR does that merging within
get_observations(and thereforeget_starcatsas well). The PR code provides another complementary description of what is going on here that might be helpful.In case this behavior ends up being problematic somewhere, the PR also adds a configuration option to disable the merging.
Interface impacts
Testing
Unit tests
Independent check of unit tests by Jean
Functional tests
No functional testing.