File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ def smallest_dtype(self):
99
99
ret = "U1"
100
100
else :
101
101
assert self .vcf_type == "String"
102
- ret = "O "
102
+ ret = "str "
103
103
return ret
104
104
105
105
Original file line number Diff line number Diff line change @@ -288,14 +288,14 @@ def fixed_field_spec(
288
288
),
289
289
fixed_field_spec (
290
290
name = "variant_allele" ,
291
- dtype = "O " ,
291
+ dtype = "str " ,
292
292
shape = (m , max_alleles ),
293
293
dimensions = ["variants" , "alleles" ],
294
294
chunks = (variants_chunk_size , max_alleles ),
295
295
),
296
296
fixed_field_spec (
297
297
name = "variant_id" ,
298
- dtype = "O " ,
298
+ dtype = "str " ,
299
299
),
300
300
fixed_field_spec (
301
301
name = "variant_id_mask" ,
@@ -399,9 +399,11 @@ def summary_table(self):
399
399
"avg_chunk_stored" : core .display_size (int (stored / array .nchunks )),
400
400
"shape" : str (array .shape ),
401
401
"chunk_shape" : str (array .chunks ),
402
- "compressor" : str (array .compressor ),
403
- "filters" : str (array .filters ),
404
402
}
403
+ if hasattr (array , "compressor" ):
404
+ d ["compressor" ] = array .compressor
405
+ if hasattr (array , "filters" ):
406
+ d ["filters" ] = array .filters
405
407
data .append (d )
406
408
return data
407
409
You can’t perform that action at this time.
0 commit comments