We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4810cd7 commit 02b7b0eCopy full SHA for 02b7b0e
nibabel/nicom/tests/test_dicomwrappers.py
@@ -991,8 +991,8 @@ def test_scale_data(self):
991
assert_array_equal(data * 3 - 2, MFW(fake_mf)._scale_data(data))
992
# Decimals are OK
993
for frame in frames:
994
- frame.PixelValueTransformationSequence[0].RescaleSlope = Decimal('3')
995
- frame.PixelValueTransformationSequence[0].RescaleIntercept = Decimal('-2')
+ frame.PixelValueTransformationSequence[0].RescaleSlope = Decimal(3)
+ frame.PixelValueTransformationSequence[0].RescaleIntercept = Decimal(-2)
996
997
# A per-frame RWV scaling takes precedence over per-frame PixelValueTransformation
998
0 commit comments