@@ -2602,7 +2602,7 @@ def create_array(read_only=False, **kwargs):
2602
2602
store = FSStore (path )
2603
2603
cache_metadata = kwargs .pop ("cache_metadata" , True )
2604
2604
cache_attrs = kwargs .pop ("cache_attrs" , True )
2605
- kwargs .setdefault ("compressor" , Blosc ())
2605
+ kwargs .setdefault ("compressor" , Blosc (blocksize = 256 ))
2606
2606
init_array (store , ** kwargs )
2607
2607
return Array (
2608
2608
store ,
@@ -2615,11 +2615,11 @@ def create_array(read_only=False, **kwargs):
2615
2615
def test_hexdigest (self ):
2616
2616
# Check basic 1-D array
2617
2617
z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = "<i4" )
2618
- assert "f710da18d45d38d4aaf2afd7fb822fdd73d02957 " == z .hexdigest ()
2618
+ assert "dd7577d645c38767cf6f6d1ef8fd64002883a014 " == z .hexdigest ()
2619
2619
2620
2620
# Check basic 1-D array with different type
2621
2621
z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = "<f4" )
2622
- assert "1437428e69754b1e1a38bd7fc9e43669577620db " == z .hexdigest ()
2622
+ assert "aa0de9892cf1ed3cda529efbf3233720b84489b7 " == z .hexdigest ()
2623
2623
2624
2624
# Check basic 2-D array
2625
2625
z = self .create_array (
@@ -2630,17 +2630,17 @@ def test_hexdigest(self):
2630
2630
chunks = 10 ,
2631
2631
dtype = "<i4" ,
2632
2632
)
2633
- assert "6c530b6b9d73e108cc5ee7b6be3d552cc994bdbe " == z .hexdigest ()
2633
+ assert "e6191c44cf958576c29c41cef0f55b028a4dbdff " == z .hexdigest ()
2634
2634
2635
2635
# Check basic 1-D array with some data
2636
2636
z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = "<i4" )
2637
2637
z [200 :400 ] = np .arange (200 , 400 , dtype = "i4" )
2638
- assert "4c0a76fb1222498e09dcd92f7f9221d6cea8b40e " == z .hexdigest ()
2638
+ assert "88adeeabb819feecccadf50152293dbb42f9107e " == z .hexdigest ()
2639
2639
2640
2640
# Check basic 1-D array with attributes
2641
2641
z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = "<i4" )
2642
2642
z .attrs ["foo" ] = "bar"
2643
- assert "05b0663ffe1785f38d3a459dec17e57a18f254af " == z .hexdigest ()
2643
+ assert "1426e084427f9920e29c9ec81b663d1005849455 " == z .hexdigest ()
2644
2644
2645
2645
def test_non_cont (self ):
2646
2646
z = self .create_array (shape = (500 , 500 , 500 ), chunks = (50 , 50 , 50 ), dtype = "<i4" )
0 commit comments