Skip to content

Commit

Permalink
[python] fix spontaneous mypy complaint in experimental/_embedding.py (
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin authored Jun 18, 2024
1 parent ef51740 commit fc0281b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def _get_embedding(
raise ValueError("Census and embedding mismatch - measurement_name does not exist")

embedding_shape = (len(obs_soma_joinids), E.shape[1])
embedding = np.full(embedding_shape, np.NaN, dtype=np.float32, order="C")
embedding = np.full(embedding_shape, np.nan, dtype=np.float32, order="C")

obs_indexer = soma.IntIndexer(obs_soma_joinids, context=E.context)
for tbl in E.read(coords=(obs_soma_joinids,)).tables():
Expand Down

0 comments on commit fc0281b

Please sign in to comment.