Fix missing comma in `cucim.core.operations.color.__all__` #1158
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.37) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 217 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.322
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1158"
general
weight: 0.35
gigony
Description
cucim.core.operations.color.__all__is missing a comma between two entries:Python concatenates the adjacent literals into the single name
"rand_color_jitterabsorbance_to_image", which does not exist in the module. As a result:from cucim.core.operations.color importraisesAttributeError: module 'cucim.core.operations.color' has no attribute 'rand_color_jitterabsorbance_to_image'rand_color_jitternorabsorbance_to_imageis part of the advertised public API (docs /help()/ tooling reading__all__).Explicit imports (
from cucim.core.operations.color import rand_color_jitter) are unaffected, which is why this has gone unnoticed.This PR splits the entry back into the two intended names. No other changes.
Verification
I don't have a CUDA build of cuCIM set up here, so I verified the package with
cupy/numpystubbed out (only the module-level import machinery matters for this bug):from <color pkg> import→AttributeError ... 'rand_color_jitterabsorbance_to_image'absorbance_to_image, color_jitter, image_to_absorbance, normalize_colors_pca, rand_color_jitter, stain_extraction_pcaChecklist
__all__fix; happy to add a star-import smoke test if you'd like)🤖 Generated with Claude Code