Skip to content

Commit

Permalink
Merge pull request #101 from bbimber/master
Browse files Browse the repository at this point in the history
Convert np.object to object
  • Loading branch information
yihming committed Feb 8, 2023
2 parents 7deb6ba + a178316 commit 01f7477
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ext_modules/fast_funcs.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ ctypedef unsigned char uint8
cpdef tuple split_barcode_channel(str[:] arr):
cdef Py_ssize_t size = arr.size, i

barcodes = np.empty(size, dtype = np.object)
channels = np.empty(size, dtype = np.object)
barcodes = np.empty(size, dtype = object)
channels = np.empty(size, dtype = object)

cdef str[:] bview = barcodes, cview = channels
cdef list res
Expand Down
2 changes: 1 addition & 1 deletion pegasusio/aggr_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _vdj_update_metadata_matrices(self, metadata: dict, matrices: dict, unilist:
for unidata in unilist:
values.update(unidata.metadata[key])
values.discard("None") # None must be 0 for sparse matrix
metadata[key] = np.array(["None"] + list(values), dtype = np.object)
metadata[key] = np.array(["None"] + list(values), dtype = object)
val2num = dict(zip(metadata[key], range(metadata[key].size)))

mat_key = key[1:]
Expand Down

0 comments on commit 01f7477

Please sign in to comment.