Add hardcoded Prostate_G3 LUT entries for keys 400–2000 - #1
Merged
Merged
Conversation
Copilot created this pull request from a session on behalf of
barrettMCW
July 14, 2026 10:45
View session
barrettMCW
marked this pull request as ready for review
July 14, 2026 10:49
There was a problem hiding this comment.
Pull request overview
This PR adds a fixed set of Prostate_G3 LUT entries intended to always be included in generated LUT output files, independent of what is returned from the remote Microsoft Graph worksheet.
Changes:
- Introduces a module-level
HARDCODED_LUTmap covering the numeric range 400–2000. - Seeds
combined_lutinmain()from the hardcoded entries before merging dynamically pulled LUT entries.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+22
to
+24
| HARDCODED_LUT: Dict[str, str] = { | ||
| f"Prostate_G3_{i}": str(i) for i in range(400, 2001) | ||
| } |
|
|
||
| for output_path, variables in grouped.items(): | ||
| combined_lut: Dict[str, str] = {} | ||
| combined_lut: Dict[str, str] = dict(HARDCODED_LUT) |
Comment on lines
+21
to
+24
| # Hardcoded Prostate_G3 LUT entries for numeric keys 400–2000. | ||
| HARDCODED_LUT: Dict[str, str] = { | ||
| f"Prostate_G3_{i}": str(i) for i in range(400, 2001) | ||
| } |
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.
Static
Prostate_G3_N=Nentries (400–2000) need to be present in every generated LUT regardless of what the remote worksheet contains.Changes
HARDCODED_LUTconstant — module-level dict comprehension producing 1601 entries (Prostate_G3_400→"400"…Prostate_G3_2000→"2000"):main()—combined_lutis now seeded fromHARDCODED_LUTinstead of an empty dict; dynamically pulled entries are merged on top, so remote data can override a hardcoded key if both exist.