Skip to content

Commit

Permalink
Merge branch 'main' into update/nb
Browse files Browse the repository at this point in the history
  • Loading branch information
selmanozleyen authored Jul 3, 2024
2 parents f2968f3 + 5017e11 commit 7b799cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/moscot/problems/time/_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,7 @@ def temporal_key(self: TemporalMixinProtocol[K, B], key: Optional[str]) -> None:
return
if key not in self.adata.obs:
raise KeyError(f"Unable to find temporal key in `adata.obs[{key!r}]`.")
self.adata.obs[key] = self.adata.obs[key].astype("category")
col = self.adata.obs[key]
if not (is_categorical_dtype(col) and is_numeric_dtype(col.cat.categories)):
raise TypeError(
Expand Down
Binary file modified tests/data/moscot_temporal_tests.h5ad
Binary file not shown.

0 comments on commit 7b799cb

Please sign in to comment.