We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70eb8a2 commit bb937ccCopy full SHA for bb937cc
1 file changed
tests/test_panel.py
@@ -87,16 +87,15 @@ def test_raw_panel_saturatedl(panel_image_name):
87
88
#saturate 2500 pixels in the raw image - note that on the undistorted image this
89
#will result in 2329 saturated pixels
90
- i0 = img.raw()
+ i0 = img.undistorted(img.raw())
91
i0[500:550,700:750]=4095*16+1
92
- img.set_raw(i0)
+ img.set_undistorted(i0)
93
94
mean, std, num, sat = pan.raw()
95
- print(mean,std,num,sat)
96
assert mean == pytest.approx(47245, rel=0.01)
97
assert std == pytest.approx(5846.1, rel=0.05)
98
assert num == pytest.approx(26005, rel=0.001)
99
- assert sat == pytest.approx(2329, abs=0)
+ assert sat == pytest.approx(2500, abs=0)
100
101
def test_raw_panel(panel_image_name):
102
img = image.Image(panel_image_name)
0 commit comments