@@ -47,7 +47,7 @@ def test_array_init(self):
4747
4848 # normal initialization
4949 store = dict ()
50- init_array (store , shape = 100 , chunks = 10 )
50+ init_array (store , shape = 100 , chunks = 10 , dtype = '<f8' )
5151 a = Array (store )
5252 assert isinstance (a , Array )
5353 assert (100 ,) == a .shape
@@ -60,7 +60,7 @@ def test_array_init(self):
6060
6161 # initialize at path
6262 store = dict ()
63- init_array (store , shape = 100 , chunks = 10 , path = 'foo/bar' )
63+ init_array (store , shape = 100 , chunks = 10 , path = 'foo/bar' , dtype = '<f8' )
6464 a = Array (store , path = 'foo/bar' )
6565 assert isinstance (a , Array )
6666 assert (100 ,) == a .shape
@@ -503,24 +503,24 @@ def test_setitem_data_not_shared(self):
503503
504504 def test_hexdigest (self ):
505505 # Check basic 1-D array
506- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
506+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
507507 assert '063b02ff8d9d3bab6da932ad5828b506ef0a6578' == z .hexdigest ()
508508
509509 # Check basic 1-D array with different type
510- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'f4' )
510+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< f4' )
511511 assert 'f97b84dc9ffac807415f750100108764e837bb82' == z .hexdigest ()
512512
513513 # Check basic 2-D array
514- z = self .create_array (shape = (20 , 35 ,), chunks = 10 , dtype = 'i4' )
514+ z = self .create_array (shape = (20 , 35 ,), chunks = 10 , dtype = '< i4' )
515515 assert '4f797d7bdad0fa1c9fa8c80832efb891a68de104' == z .hexdigest ()
516516
517517 # Check basic 1-D array with some data
518- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
518+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
519519 z [200 :400 ] = np .arange (200 , 400 , dtype = 'i4' )
520520 assert '14470724dca6c1837edddedc490571b6a7f270bc' == z .hexdigest ()
521521
522522 # Check basic 1-D array with attributes
523- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
523+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
524524 z .attrs ['foo' ] = 'bar'
525525 assert '2a1046dd99b914459b3e86be9dde05027a07d209' == z .hexdigest ()
526526
@@ -1293,24 +1293,24 @@ def create_array(read_only=False, **kwargs):
12931293
12941294 def test_hexdigest (self ):
12951295 # Check basic 1-D array
1296- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
1296+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
12971297 assert 'f710da18d45d38d4aaf2afd7fb822fdd73d02957' == z .hexdigest ()
12981298
12991299 # Check basic 1-D array with different type
1300- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'f4' )
1300+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< f4' )
13011301 assert '1437428e69754b1e1a38bd7fc9e43669577620db' == z .hexdigest ()
13021302
13031303 # Check basic 2-D array
1304- z = self .create_array (shape = (20 , 35 ,), chunks = 10 , dtype = 'i4' )
1304+ z = self .create_array (shape = (20 , 35 ,), chunks = 10 , dtype = '< i4' )
13051305 assert 'dde44c72cc530bd6aae39b629eb15a2da627e5f9' == z .hexdigest ()
13061306
13071307 # Check basic 1-D array with some data
1308- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
1308+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
13091309 z [200 :400 ] = np .arange (200 , 400 , dtype = 'i4' )
13101310 assert '4c0a76fb1222498e09dcd92f7f9221d6cea8b40e' == z .hexdigest ()
13111311
13121312 # Check basic 1-D array with attributes
1313- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
1313+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
13141314 z .attrs ['foo' ] = 'bar'
13151315 assert '05b0663ffe1785f38d3a459dec17e57a18f254af' == z .hexdigest ()
13161316
@@ -1348,24 +1348,24 @@ def create_array(read_only=False, **kwargs):
13481348
13491349 def test_hexdigest (self ):
13501350 # Check basic 1-D array
1351- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
1351+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
13521352 assert 'f710da18d45d38d4aaf2afd7fb822fdd73d02957' == z .hexdigest ()
13531353
13541354 # Check basic 1-D array with different type
1355- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'f4' )
1355+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< f4' )
13561356 assert '1437428e69754b1e1a38bd7fc9e43669577620db' == z .hexdigest ()
13571357
13581358 # Check basic 2-D array
1359- z = self .create_array (shape = (20 , 35 ,), chunks = 10 , dtype = 'i4' )
1359+ z = self .create_array (shape = (20 , 35 ,), chunks = 10 , dtype = '< i4' )
13601360 assert 'dde44c72cc530bd6aae39b629eb15a2da627e5f9' == z .hexdigest ()
13611361
13621362 # Check basic 1-D array with some data
1363- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
1363+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
13641364 z [200 :400 ] = np .arange (200 , 400 , dtype = 'i4' )
13651365 assert '4c0a76fb1222498e09dcd92f7f9221d6cea8b40e' == z .hexdigest ()
13661366
13671367 # Check basic 1-D array with attributes
1368- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
1368+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
13691369 z .attrs ['foo' ] = 'bar'
13701370 assert '05b0663ffe1785f38d3a459dec17e57a18f254af' == z .hexdigest ()
13711371
@@ -1704,24 +1704,24 @@ def test_compressors(self):
17041704
17051705 def test_hexdigest (self ):
17061706 # Check basic 1-D array
1707- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
1707+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
17081708 assert 'c6b83adfad999fbd865057531d749d87cf138f58' == z .hexdigest ()
17091709
17101710 # Check basic 1-D array with different type
1711- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'f4' )
1711+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< f4' )
17121712 assert 'a3d6d187536ecc3a9dd6897df55d258e2f52f9c5' == z .hexdigest ()
17131713
17141714 # Check basic 2-D array
1715- z = self .create_array (shape = (20 , 35 ,), chunks = 10 , dtype = 'i4' )
1715+ z = self .create_array (shape = (20 , 35 ,), chunks = 10 , dtype = '< i4' )
17161716 assert '189690c5701d33a41cd7ce9aa0ac8dac49a69c51' == z .hexdigest ()
17171717
17181718 # Check basic 1-D array with some data
1719- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
1719+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
17201720 z [200 :400 ] = np .arange (200 , 400 , dtype = 'i4' )
17211721 assert 'b63f031031dcd5248785616edcb2d6fe68203c28' == z .hexdigest ()
17221722
17231723 # Check basic 1-D array with attributes
1724- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
1724+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
17251725 z .attrs ['foo' ] = 'bar'
17261726 assert '0cfc673215a8292a87f3c505e2402ce75243c601' == z .hexdigest ()
17271727
@@ -1854,24 +1854,24 @@ def create_array(self, read_only=False, **kwargs):
18541854
18551855 def test_hexdigest (self ):
18561856 # Check basic 1-D array
1857- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
1857+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
18581858 assert 'd3da3d485de4a5fcc6d91f9dfc6a7cba9720c561' == z .hexdigest ()
18591859
18601860 # Check basic 1-D array with different type
1861- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'f4' )
1861+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< f4' )
18621862 assert '443b8dee512e42946cb63ff01d28e9bee8105a5f' == z .hexdigest ()
18631863
18641864 # Check basic 2-D array
1865- z = self .create_array (shape = (20 , 35 ,), chunks = 10 , dtype = 'i4' )
1865+ z = self .create_array (shape = (20 , 35 ,), chunks = 10 , dtype = '< i4' )
18661866 assert 'de841ca276042993da53985de1e7769f5d0fc54d' == z .hexdigest ()
18671867
18681868 # Check basic 1-D array with some data
1869- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
1869+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
18701870 z [200 :400 ] = np .arange (200 , 400 , dtype = 'i4' )
18711871 assert '42b6ae0d50ec361628736ab7e68fe5fefca22136' == z .hexdigest ()
18721872
18731873 # Check basic 1-D array with attributes
1874- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
1874+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
18751875 z .attrs ['foo' ] = 'bar'
18761876 assert 'a0535f31c130f5e5ac66ba0713d1c1ceaebd089b' == z .hexdigest ()
18771877
@@ -1890,24 +1890,24 @@ def create_array(self, read_only=False, **kwargs):
18901890
18911891 def test_hexdigest (self ):
18921892 # Check basic 1-D array
1893- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
1893+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
18941894 assert '33141032439fb1df5e24ad9891a7d845b6c668c8' == z .hexdigest ()
18951895
18961896 # Check basic 1-D array with different type
1897- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'f4' )
1897+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< f4' )
18981898 assert '44d719da065c88a412d609a5500ff41e07b331d6' == z .hexdigest ()
18991899
19001900 # Check basic 2-D array
1901- z = self .create_array (shape = (20 , 35 ,), chunks = 10 , dtype = 'i4' )
1901+ z = self .create_array (shape = (20 , 35 ,), chunks = 10 , dtype = '< i4' )
19021902 assert 'f57a9a73a4004490fe1b871688651b8a298a5db7' == z .hexdigest ()
19031903
19041904 # Check basic 1-D array with some data
1905- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
1905+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
19061906 z [200 :400 ] = np .arange (200 , 400 , dtype = 'i4' )
19071907 assert '1e1bcaac63e4ef3c4a68f11672537131c627f168' == z .hexdigest ()
19081908
19091909 # Check basic 1-D array with attributes
1910- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
1910+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
19111911 z .attrs ['foo' ] = 'bar'
19121912 assert '86d7b9bf22dccbeaa22f340f38be506b55e76ff2' == z .hexdigest ()
19131913
@@ -1926,24 +1926,24 @@ def create_array(self, read_only=False, **kwargs):
19261926
19271927 def test_hexdigest (self ):
19281928 # Check basic 1-D array
1929- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
1929+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
19301930 assert '7ff2ae8511eac915fad311647c168ccfe943e788' == z .hexdigest ()
19311931
19321932 # Check basic 1-D array with different type
1933- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'f4' )
1933+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< f4' )
19341934 assert '962705c861863495e9ccb7be7735907aa15e85b5' == z .hexdigest ()
19351935
19361936 # Check basic 2-D array
1937- z = self .create_array (shape = (20 , 35 ,), chunks = 10 , dtype = 'i4' )
1937+ z = self .create_array (shape = (20 , 35 ,), chunks = 10 , dtype = '< i4' )
19381938 assert 'deb675ff91dd26dba11b65aab5f19a1f21a5645b' == z .hexdigest ()
19391939
19401940 # Check basic 1-D array with some data
1941- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
1941+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
19421942 z [200 :400 ] = np .arange (200 , 400 , dtype = 'i4' )
19431943 assert '90e30bdab745a9641cd0eb605356f531bc8ec1c3' == z .hexdigest ()
19441944
19451945 # Check basic 1-D array with attributes
1946- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
1946+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
19471947 z .attrs ['foo' ] = 'bar'
19481948 assert '95d40c391f167db8b1290e3c39d9bf741edacdf6' == z .hexdigest ()
19491949
@@ -1969,24 +1969,24 @@ def create_array(self, read_only=False, **kwargs):
19691969
19701970 def test_hexdigest (self ):
19711971 # Check basic 1-D array
1972- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
1972+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
19731973 assert '93ecaa530a1162a9d48a3c1dcee4586ccfc59bae' == z .hexdigest ()
19741974
19751975 # Check basic 1-D array with different type
1976- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'f4' )
1976+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< f4' )
19771977 assert '04a9755a0cd638683531b7816c7fa4fbb6f577f2' == z .hexdigest ()
19781978
19791979 # Check basic 2-D array
1980- z = self .create_array (shape = (20 , 35 ,), chunks = 10 , dtype = 'i4' )
1980+ z = self .create_array (shape = (20 , 35 ,), chunks = 10 , dtype = '< i4' )
19811981 assert 'b93b163a21e8500519250a6defb821d03eb5d9e0' == z .hexdigest ()
19821982
19831983 # Check basic 1-D array with some data
1984- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
1984+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
19851985 z [200 :400 ] = np .arange (200 , 400 , dtype = 'i4' )
19861986 assert 'cde499f3dc945b4e97197ff8e3cf8188a1262c35' == z .hexdigest ()
19871987
19881988 # Check basic 1-D array with attributes
1989- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
1989+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
19901990 z .attrs ['foo' ] = 'bar'
19911991 assert 'e2cf3afbf66ad0e28a2b6b68b1b07817c69aaee2' == z .hexdigest ()
19921992
@@ -2012,24 +2012,24 @@ def create_array(read_only=False, **kwargs):
20122012
20132013 def test_hexdigest (self ):
20142014 # Check basic 1-D array
2015- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
2015+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
20162016 assert 'b80367c5599d47110d42bd8886240c2f46620dba' == z .hexdigest ()
20172017
20182018 # Check basic 1-D array with different type
2019- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'f4' )
2019+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< f4' )
20202020 assert '95a7b2471225e73199c9716d21e8d3dd6e5f6f2a' == z .hexdigest ()
20212021
20222022 # Check basic 2-D array
2023- z = self .create_array (shape = (20 , 35 ,), chunks = 10 , dtype = 'i4' )
2023+ z = self .create_array (shape = (20 , 35 ,), chunks = 10 , dtype = '< i4' )
20242024 assert '9abf3ad54413ab11855d88a5e0087cd416657e02' == z .hexdigest ()
20252025
20262026 # Check basic 1-D array with some data
2027- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
2027+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
20282028 z [200 :400 ] = np .arange (200 , 400 , dtype = 'i4' )
20292029 assert 'c649ad229bc5720258b934ea958570c2f354c2eb' == z .hexdigest ()
20302030
20312031 # Check basic 1-D array with attributes
2032- z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = 'i4' )
2032+ z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '< i4' )
20332033 z .attrs ['foo' ] = 'bar'
20342034 assert '62fc9236d78af18a5ec26c12eea1d33bce52501e' == z .hexdigest ()
20352035
0 commit comments