Skip to content

Instrument problems at wrong waypoints#301

Merged
j-atkins merged 3 commits intomainfrom
problems-at-waypoints
Mar 3, 2026
Merged

Instrument problems at wrong waypoints#301
j-atkins merged 3 commits intomainfrom
problems-at-waypoints

Conversation

@j-atkins
Copy link
Collaborator

@j-atkins j-atkins commented Mar 3, 2026

As flagged by @ammedd in class, it was possible for an instrument 'problem' to occur at a waypoint where this instrument is not deployed. Therefore, this PR introduces additional logic to the problems selection procedure to ensure that the instrument associated with a given InstrumentProblem is actually present at the waypoint it has been assigned. The original waypoint assignment is random.

Note, instead of finding a replacement waypoint to assign, the InstrumentProblem is replaced with a GeneralProblem which can occur at any waypoint. This is because there are situations, albeit rare, when there is no other available and suitable waypoint.

  • Tests updated

@j-atkins j-atkins requested a review from erikvansebille March 3, 2026 13:38
Copy link
Member

@erikvansebille erikvansebille left a comment

Choose a reason for hiding this comment

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

Looks good. And nice also that you added tests!

@j-atkins j-atkins merged commit f56e5e8 into main Mar 3, 2026
9 of 10 checks passed
@j-atkins j-atkins deleted the problems-at-waypoints branch March 3, 2026 15:43
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