Skip to content

Commit 4b9ca56

Browse files
committed
Add test for order warning in from_array
1 parent 7ef58f2 commit 4b9ca56

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_array.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,6 +1563,15 @@ async def test_from_array_arraylike(
15631563
np.testing.assert_array_equal(result[...], np.full_like(src, fill_value))
15641564

15651565

1566+
def test_from_array_F_order():
1567+
arr = zarr.create_array(store={}, data=np.array([1]), order="F", zarr_format=2)
1568+
with pytest.warns(
1569+
UserWarning,
1570+
match="The existing order='F' of the source Zarr format 2 array will be ignored.",
1571+
):
1572+
zarr.from_array(store={}, data=arr, zarr_format=3)
1573+
1574+
15661575
async def test_orthogonal_set_total_slice() -> None:
15671576
"""Ensure that a whole chunk overwrite does not read chunks"""
15681577
store = MemoryStore()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy