@@ -2630,7 +2630,7 @@ def create_array(read_only=False, **kwargs):
2630
2630
cache_metadata = kwargs .pop ("cache_metadata" , True )
2631
2631
cache_attrs = kwargs .pop ("cache_attrs" , True )
2632
2632
write_empty_chunks = kwargs .pop ('write_empty_chunks' , True )
2633
- kwargs .setdefault ("compressor" , Blosc ())
2633
+ kwargs .setdefault ("compressor" , Blosc (blocksize = 256 ))
2634
2634
init_array (store , ** kwargs )
2635
2635
return Array (
2636
2636
store ,
@@ -2644,11 +2644,11 @@ def create_array(read_only=False, **kwargs):
2644
2644
def test_hexdigest (self ):
2645
2645
# Check basic 1-D array
2646
2646
z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = "<i4" )
2647
- assert "f710da18d45d38d4aaf2afd7fb822fdd73d02957 " == z .hexdigest ()
2647
+ assert "dd7577d645c38767cf6f6d1ef8fd64002883a014 " == z .hexdigest ()
2648
2648
2649
2649
# Check basic 1-D array with different type
2650
2650
z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = "<f4" )
2651
- assert "1437428e69754b1e1a38bd7fc9e43669577620db " == z .hexdigest ()
2651
+ assert "aa0de9892cf1ed3cda529efbf3233720b84489b7 " == z .hexdigest ()
2652
2652
2653
2653
# Check basic 2-D array
2654
2654
z = self .create_array (
@@ -2659,17 +2659,17 @@ def test_hexdigest(self):
2659
2659
chunks = 10 ,
2660
2660
dtype = "<i4" ,
2661
2661
)
2662
- assert "6c530b6b9d73e108cc5ee7b6be3d552cc994bdbe " == z .hexdigest ()
2662
+ assert "e6191c44cf958576c29c41cef0f55b028a4dbdff " == z .hexdigest ()
2663
2663
2664
2664
# Check basic 1-D array with some data
2665
2665
z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = "<i4" )
2666
2666
z [200 :400 ] = np .arange (200 , 400 , dtype = "i4" )
2667
- assert "4c0a76fb1222498e09dcd92f7f9221d6cea8b40e " == z .hexdigest ()
2667
+ assert "88adeeabb819feecccadf50152293dbb42f9107e " == z .hexdigest ()
2668
2668
2669
2669
# Check basic 1-D array with attributes
2670
2670
z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = "<i4" )
2671
2671
z .attrs ["foo" ] = "bar"
2672
- assert "05b0663ffe1785f38d3a459dec17e57a18f254af " == z .hexdigest ()
2672
+ assert "1426e084427f9920e29c9ec81b663d1005849455 " == z .hexdigest ()
2673
2673
2674
2674
def test_non_cont (self ):
2675
2675
z = self .create_array (shape = (500 , 500 , 500 ), chunks = (50 , 50 , 50 ), dtype = "<i4" )
0 commit comments