You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PseudoColorSoftcopyPresentationState raises TypeError for any voi_lut_transformations #534
(src/highdicom/pr/sop.py, in the "Softcopy VOI LUT" block). isinstance with a list as its second argument raises, so the constructor fails for any non-empty voi_lut_transformations, valid or not:
TypeError: isinstance() arg 2 must be a type, a tuple of types, or a union
GrayscaleSoftcopyPresentationState has the same block with SoftcopyVOILUTTransformation there, and its tests cover the argument; the pseudo-color tests never pass it, which is probably why this went unnoticed since #139.
Reproduction: take the arguments of test_construction_palette_color_lut_transformation in tests/test_pr.py and add
Activity