Skip to content

Add hardcoded Prostate_G3 LUT entries for keys 400–2000 - #1

Merged
barrettMCW merged 1 commit into
mainfrom
copilot/hard-code-keys-lut
Jul 14, 2026
Merged

barrettMCW merged 1 commit into
mainfrom
copilot/hard-code-keys-lut

Conversation

Copilot AI commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Static Prostate_G3_N=N entries (400–2000) need to be present in every generated LUT regardless of what the remote worksheet contains.

Changes

  • HARDCODED_LUT constant — module-level dict comprehension producing 1601 entries (Prostate_G3_400 → "400" … Prostate_G3_2000 → "2000"):
    HARDCODED_LUT: Dict[str, str] = {
        f"Prostate_G3_{i}": str(i) for i in range(400, 2001)
    }
  • main() — combined_lut is now seeded from HARDCODED_LUT instead of an empty dict; dynamically pulled entries are merged on top, so remote data can override a hardcoded key if both exist.

@barrettMCW
barrettMCW marked this pull request as ready for review July 14, 2026 10:49
Copilot AI review requested due to automatic review settings July 14, 2026 10:49
@barrettMCW
barrettMCW merged commit 1fe6ed2 into main Jul 14, 2026
@barrettMCW
barrettMCW deleted the copilot/hard-code-keys-lut branch July 14, 2026 10:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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_LUT map covering the numeric range 400–2000.
  • Seeds combined_lut in main() 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 thread lut_puller.py
Comment on lines +22 to +24
HARDCODED_LUT: Dict[str, str] = {
f"Prostate_G3_{i}": str(i) for i in range(400, 2001)
}
Comment thread lut_puller.py

for output_path, variables in grouped.items():
combined_lut: Dict[str, str] = {}
combined_lut: Dict[str, str] = dict(HARDCODED_LUT)
Comment thread lut_puller.py
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)
}
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.

3 participants