Skip to content

Commit

Permalink
str
Browse files Browse the repository at this point in the history
closes #191
  • Loading branch information
brentp committed Feb 14, 2021
1 parent 72ed483 commit b0d9d15
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cyvcf2/cyvcf2.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,9 @@ cdef class VCF(HTSFile):
bcf_destroy(b)
if ret == -1: # end-of-file
raise StopIteration
else:
raise Exception("error parsing variant with `htslib::bcf_read` error-code: %d" % (b.errcode))
else:
raise Exception("error parsing variant with `htslib::bcf_read` error-code: %d and ret: %d" % (
b.errcode, ret))


property samples:
Expand Down Expand Up @@ -1176,7 +1177,7 @@ cdef class Variant(object):
else:
raise Exception("gt_bases not implemented for ploidy > 2")

return np.array(bases, np.str)
return np.array(bases, str)

def relatedness(self,
int32_t[:, ::view.contiguous] ibs,
Expand Down

0 comments on commit b0d9d15

Please sign in to comment.