We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36ad312 commit e73843cCopy full SHA for e73843c
modules/python/test/test_conversions.py
@@ -78,7 +78,7 @@ def test_demosaic():
78
for fn in fns:
79
for dtype in [np.uint8, np.uint16]:
80
bayer_data = np.ones((h, w), dtype=dtype) * 128
81
- rgba = np.empty((h, w, 4), dtype=dtype)
+ rgba = np.zeros((h, w, 4), dtype=dtype)
82
old_rgba = rgba.copy()
83
fn(bayer_data, rgba)
84
assert not np.allclose(rgba, old_rgba), f'Error when testing {fn}, with dtype {dtype}'
0 commit comments