@@ -1629,7 +1629,7 @@ cdef class Attr(object):
1629
1629
check_error (self .ctx ,
1630
1630
tiledb_attribute_get_filter_list (self .ctx .ptr , self .ptr , & filter_list_ptr ))
1631
1631
1632
- return FilterList (PyCapsule_New (filter_list_ptr , "fl" , NULL ),
1632
+ return FilterList (PyCapsule_New (filter_list_ptr , "fl" , NULL ),
1633
1633
is_capsule = True , ctx = self .ctx )
1634
1634
1635
1635
@property
@@ -1867,7 +1867,7 @@ cdef class Dim(object):
1867
1867
if tile_size_array .size != 1 :
1868
1868
raise ValueError ("tile extent must be a scalar" )
1869
1869
tile_size_ptr = np .PyArray_DATA (tile_size_array )
1870
-
1870
+
1871
1871
cdef tiledb_filter_list_t * filter_list_ptr = NULL
1872
1872
try :
1873
1873
check_error (ctx ,
@@ -2028,7 +2028,7 @@ cdef class Dim(object):
2028
2028
check_error (self .ctx ,
2029
2029
tiledb_dimension_get_filter_list (self .ctx .ptr , self .ptr , & filter_list_ptr ))
2030
2030
2031
- return FilterList (PyCapsule_New (filter_list_ptr , "fl" , NULL ),
2031
+ return FilterList (PyCapsule_New (filter_list_ptr , "fl" , NULL ),
2032
2032
is_capsule = True , ctx = self .ctx )
2033
2033
2034
2034
cdef unsigned int _cell_val_num (Dim self ) except ? 0 :
@@ -2664,7 +2664,7 @@ cdef class ArraySchema(object):
2664
2664
if allows_duplicates :
2665
2665
ballows_dups = 1
2666
2666
tiledb_array_schema_set_allows_dups (ctx .ptr , schema_ptr , ballows_dups )
2667
-
2667
+
2668
2668
if not isinstance (domain , Domain ):
2669
2669
raise TypeError ("'domain' must be an instance of Domain (domain is: '{}')" .format (domain ))
2670
2670
cdef tiledb_domain_t * domain_ptr = (< Domain > domain ).ptr
@@ -2694,10 +2694,10 @@ cdef class ArraySchema(object):
2694
2694
filter_list .__capsule__ (), "fl" )
2695
2695
check_error (ctx ,
2696
2696
tiledb_array_schema_set_coords_filter_list (ctx .ptr , schema_ptr , filter_list_ptr ))
2697
-
2697
+
2698
2698
check_error (self .ctx ,
2699
2699
tiledb_domain_get_ndim (ctx .ptr , domain_ptr , & ndim ))
2700
-
2700
+
2701
2701
if not isinstance (coords_filters , FilterList ):
2702
2702
coords_filters = FilterList (coords_filters , ctx = ctx )
2703
2703
filter_list = coords_filters
@@ -2733,7 +2733,7 @@ cdef class ArraySchema(object):
2733
2733
if rc != TILEDB_OK :
2734
2734
tiledb_array_schema_free (& schema_ptr )
2735
2735
_raise_ctx_err (ctx .ptr , rc )
2736
-
2736
+
2737
2737
cdef tiledb_attribute_t * attr_ptr = NULL
2738
2738
cdef Attr attribute
2739
2739
for attr in attrs :
@@ -2946,7 +2946,7 @@ cdef class ArraySchema(object):
2946
2946
tiledb_array_schema_get_offsets_filter_list (
2947
2947
self .ctx .ptr , self .ptr , & filter_list_ptr ))
2948
2948
return FilterList (
2949
- PyCapsule_New (filter_list_ptr , "fl" , NULL ),
2949
+ PyCapsule_New (filter_list_ptr , "fl" , NULL ),
2950
2950
is_capsule = True , ctx = self .ctx )
2951
2951
2952
2952
@property
@@ -2961,20 +2961,20 @@ cdef class ArraySchema(object):
2961
2961
tiledb_array_schema_get_coords_filter_list (
2962
2962
self .ctx .ptr , self .ptr , & filter_list_ptr ))
2963
2963
return FilterList (
2964
- PyCapsule_New (filter_list_ptr , "fl" , NULL ),
2964
+ PyCapsule_New (filter_list_ptr , "fl" , NULL ),
2965
2965
is_capsule = True , ctx = self .ctx )
2966
-
2966
+
2967
2967
@coords_filters .setter
2968
2968
def coords_filters (self , value ):
2969
2969
warnings .warn (
2970
2970
"coords_filters is deprecated; "
2971
2971
"set the FilterList for each dimension" ,
2972
2972
DeprecationWarning ,
2973
2973
)
2974
-
2974
+
2975
2975
@property
2976
2976
def validity_filters (self ):
2977
- """The FilterList for the array's validity
2977
+ """The FilterList for the array's validity
2978
2978
2979
2979
:rtype: tiledb.FilterList
2980
2980
:raises: :py:exc:`tiledb.TileDBError`
@@ -2984,7 +2984,7 @@ cdef class ArraySchema(object):
2984
2984
tiledb_array_schema_get_validity_filter_list (
2985
2985
self .ctx .ptr , self .ptr , & validity_list_ptr ))
2986
2986
return FilterList (
2987
- PyCapsule_New (validity_list_ptr , "fl" , NULL ),
2987
+ PyCapsule_New (validity_list_ptr , "fl" , NULL ),
2988
2988
is_capsule = True , ctx = self .ctx )
2989
2989
2990
2990
@property
@@ -4811,7 +4811,7 @@ def _setitem_impl_sparse(self: Array, selection, val, dict nullmaps):
4811
4811
attr_val = np .ascontiguousarray (attr_val , dtype = attr .dtype )
4812
4812
4813
4813
if attr .isnullable and attr .name not in nullmaps :
4814
- nullmaps [attr .name ] = np .array ([int (v is None ) for v in attr_val ], dtype = np .uint8 )
4814
+ nullmaps [attr .name ] = np .array ([int (v is not None ) for v in attr_val ], dtype = np .uint8 )
4815
4815
4816
4816
except Exception as exc :
4817
4817
raise ValueError (f"NumPy array conversion check failed for attr '{ name } '" ) from exc
0 commit comments