mirror of
https://github.com/rasterio/rasterio.git
synced 2026-02-01 14:34:43 +00:00
removing xfail; comment cleanup
This commit is contained in:
parent
7247f375d6
commit
d0aed03a0d
@ -448,6 +448,7 @@ def _reproject(
|
||||
for i in range(src_count):
|
||||
psWOptions.padfSrcNoDataReal[i] = src_nodata
|
||||
psWOptions.padfSrcNoDataImag[i] = 0.0
|
||||
|
||||
warp_extras = _gdal.CSLSetNameValue(
|
||||
warp_extras, "UNIFIED_SRC_NODATA", "YES")
|
||||
|
||||
|
||||
@ -479,7 +479,6 @@ def test_reproject_no_init_nodata_tofile(tmpdir):
|
||||
dst_nodata=0.0
|
||||
)
|
||||
|
||||
# 200s should not be overwritten by 100s
|
||||
reproject(
|
||||
source2,
|
||||
rasterio.band(dst, 1),
|
||||
@ -492,16 +491,16 @@ def test_reproject_no_init_nodata_tofile(tmpdir):
|
||||
init_dest_nodata=False
|
||||
)
|
||||
|
||||
# 200s should not be overwritten by 100s
|
||||
with rasterio.open(tiffname) as src:
|
||||
assert src.read().max() == 200
|
||||
|
||||
|
||||
@pytest.mark.xfail
|
||||
def test_reproject_no_init_nodata_toarray():
|
||||
"""Test that nodata is being initialized."""
|
||||
params = default_reproject_params()
|
||||
|
||||
source1 = np.zeros((params.width, params.height), dtype=np.uint8)
|
||||
source1 = np.zeros((params.width, params.height))
|
||||
source2 = source1.copy()
|
||||
out = source1.copy()
|
||||
|
||||
@ -524,7 +523,6 @@ def test_reproject_no_init_nodata_toarray():
|
||||
|
||||
assert out.max() == 200
|
||||
assert out.min() == 0
|
||||
# 200s should NOT be overwritten by 100s
|
||||
|
||||
reproject(
|
||||
source2,
|
||||
@ -538,6 +536,7 @@ def test_reproject_no_init_nodata_toarray():
|
||||
init_dest_nodata=False
|
||||
)
|
||||
|
||||
# 200s should NOT be overwritten by 100s
|
||||
assert out.max() == 200
|
||||
assert out.min() == 0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user