Updated feasible_point to search over scan points - #4552
Open
j-a-foster wants to merge 1 commit into
Open
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4552 +/- ##
=======================================
Coverage 49.46% 49.46%
=======================================
Files 150 150
Lines 30069 30068 -1
=======================================
Hits 14874 14874
+ Misses 15195 15194 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
timothy-nunn
requested changes
Aug 25, 2026
Collaborator
There was a problem hiding this comment.
So I actually think this entire function could do with a re-work.
Even with your fixes there are still a number of issues:
- Negative indexing only works for -1, any other index defaults to scan point 1.
- Scan point 0 silently updates to 1.
- Scan point > number of scans will select the last scan.
I'm also not sure I like the for loop looking for a scan. I think this logic should be simplified so that:
- We only support scans
[1, num_scans]and-1, anything else raises an error. - We only check the requested scan (
position) for feasibility and error if it is infeasible. In my opinion, if the user wants a scan point they should explicitly index it, we shouldn't be silently searching for a feasible one.
Let me know if you disagree, have any suggestions, or questions.
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
Updates
create.pyto allow creating new IN.DATs from any point in a scan.Checklist
I confirm that I have completed the following checks: