Skip to content

Fix color_mapping validator for OmegaConf RGB sequences#38

Merged
clemsgrs merged 3 commits intomainfrom
codex/fix-color-mapping-listconfig
Feb 14, 2026
Merged

Fix color_mapping validator for OmegaConf RGB sequences#38
clemsgrs merged 3 commits intomainfrom
codex/fix-color-mapping-listconfig

Conversation

@clemsgrs
Copy link
Owner

Summary

  • fix _validate_visualization_color_mapping to accept sequence-like RGB values (including OmegaConf ListConfig)
  • keep strict shape/range checks (len == 3, integer channels in [0, 255])
  • add regression test for ListConfig color values
  • document this correction pattern in tasks/lessons.md

Why

Recent strict validation rejected valid configs where RGB triplets are represented as OmegaConf containers instead of plain Python list/tuple, causing previously working runs to fail.

Testing

  • /Users/clems/Code/venv/hs2p/bin/python -m pytest tests/test_sampling_color_mapping_validation.py -q
  • /Users/clems/Code/venv/hs2p/bin/python -m pytest tests -q

@clemsgrs clemsgrs merged commit 93ddea9 into main Feb 14, 2026
1 check passed
@clemsgrs clemsgrs deleted the codex/fix-color-mapping-listconfig branch February 14, 2026 12:30
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.

1 participant