@@ -1247,7 +1247,7 @@ def test_varlen_sparse_all_empty_strings(self):
1247
1247
1248
1248
with tiledb .open (uri , mode = "r" ) as T :
1249
1249
# check interior range
1250
- assert_array_equal (A [1 :- 1 ], T [1 : dim_len - 1 ]["a1" ])
1250
+ assert_array_equal (A [1 :- 1 ], T [1 : dim_len - 1 ]["a1" ])
1251
1251
assert_array_equal (A [1 :- 1 ], T .multi_index [2 : dim_len - 1 ]["a1" ])
1252
1252
1253
1253
def test_varlen_write_unicode (self ):
@@ -1525,48 +1525,48 @@ def test_array_varlen_2d_s_fixed(self):
1525
1525
def test_dense_array_with_negative_positive_domain (self , lo , hi ):
1526
1526
path = self .path ("test_dense_array_with_negative_domain" )
1527
1527
attr = tiledb .Attr (dtype = np .uint8 )
1528
- dom = tiledb .Domain (tiledb .Dim ("X" , domain = (- 20 , 20 ),dtype = np .int64 ))
1528
+ dom = tiledb .Domain (tiledb .Dim ("X" , domain = (- 20 , 20 ), dtype = np .int64 ))
1529
1529
schema = tiledb .ArraySchema (domain = dom , sparse = False , attrs = [attr ])
1530
1530
tiledb .Array .create (path , schema )
1531
- data = np .random .randint (10 , size = (hi - lo ))
1531
+ data = np .random .randint (10 , size = (hi - lo ))
1532
1532
1533
- with tiledb .open (path , 'w' ) as A :
1533
+ with tiledb .open (path , "w" ) as A :
1534
1534
A [lo :hi ] = data
1535
-
1536
- with tiledb .open (path , 'r' ) as A :
1535
+
1536
+ with tiledb .open (path , "r" ) as A :
1537
1537
assert_array_equal (A [lo :hi ], data [:])
1538
-
1539
1538
1540
1539
@pytest .mark .parametrize ("lo,hi" , [(- 20 , - 10 ), (- 20 , - 15 ), (- 15 , - 10 ), (- 17 , - 13 )])
1541
1540
def test_dense_array_with_negative_negative_domain (self , lo , hi ):
1542
1541
path = self .path ("test_dense_array_with_negative_negative_domain" )
1543
1542
attr = tiledb .Attr (dtype = np .uint8 )
1544
- dom = tiledb .Domain (tiledb .Dim ("X" , domain = (- 20 , - 10 ),dtype = np .int64 ))
1543
+ dom = tiledb .Domain (tiledb .Dim ("X" , domain = (- 20 , - 10 ), dtype = np .int64 ))
1545
1544
schema = tiledb .ArraySchema (domain = dom , sparse = False , attrs = [attr ])
1546
1545
tiledb .Array .create (path , schema )
1547
- data = np .random .randint (10 , size = (hi - lo ))
1546
+ data = np .random .randint (10 , size = (hi - lo ))
1548
1547
1549
- with tiledb .open (path , 'w' ) as A :
1548
+ with tiledb .open (path , "w" ) as A :
1550
1549
A [lo :hi ] = data
1551
-
1552
- with tiledb .open (path , 'r' ) as A :
1550
+
1551
+ with tiledb .open (path , "r" ) as A :
1553
1552
assert_array_equal (A [lo :hi ], data [:])
1554
-
1555
- @pytest .mark .parametrize ("lo,hi" , [(10 , 20 ), (10 ,15 ),(12 ,15 ), (17 ,20 )])
1553
+
1554
+ @pytest .mark .parametrize ("lo,hi" , [(10 , 20 ), (10 , 15 ), (12 , 15 ), (17 , 20 )])
1556
1555
def test_dense_array_with_offset_domain (self , lo , hi ):
1557
1556
path = self .path ("test_dense_array_with_offset_domain" )
1558
1557
attr = tiledb .Attr (dtype = np .uint8 )
1559
- dom = tiledb .Domain (tiledb .Dim ("X" , domain = (10 , 20 ),dtype = np .int64 ))
1558
+ dom = tiledb .Domain (tiledb .Dim ("X" , domain = (10 , 20 ), dtype = np .int64 ))
1560
1559
schema = tiledb .ArraySchema (domain = dom , sparse = False , attrs = [attr ])
1561
1560
tiledb .Array .create (path , schema )
1562
- data = np .random .randint (10 , size = (hi - lo ))
1561
+ data = np .random .randint (10 , size = (hi - lo ))
1563
1562
1564
- with tiledb .open (path , 'w' ) as A :
1563
+ with tiledb .open (path , "w" ) as A :
1565
1564
A [lo :hi ] = data
1566
-
1567
- with tiledb .open (path , 'r' ) as A :
1565
+
1566
+ with tiledb .open (path , "r" ) as A :
1568
1567
assert_array_equal (A [lo :hi ], data [:])
1569
1568
1569
+
1570
1570
class TestSparseArray (DiskTestCase ):
1571
1571
@pytest .mark .xfail
1572
1572
def test_simple_1d_sparse_vector (self ):
0 commit comments