Skip to content

Commit

Permalink
Use existing .csr() method to neaten a callsite (#168)
Browse files Browse the repository at this point in the history
* Use existing .csr() method to neaten a callsite

* mkmd.sh was renaming off README.md et al and should not have (#169)

* Use existing .csr() method to neaten a callsite
  • Loading branch information
johnkerl authored Jun 20, 2022
1 parent d606c48 commit 304e767
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions apis/python/src/tiledbsc/assay_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,19 +597,9 @@ def to_csr_matrix(self, row_labels, col_labels):
s = util.get_start_stamp()
print(f"{self._indent}START read {self.uri}")

df = self.df()

retval = util.X_and_ids_to_sparse_matrix(
df,
self.row_dim_name,
self.col_dim_name,
self.attr_name,
row_labels,
col_labels,
return_as="csr",
)
csr = self.csr()

if self._verbose:
print(util.format_elapsed(s, f"{self._indent}FINISH read {self.uri}"))

return retval
return csr

0 comments on commit 304e767

Please sign in to comment.