Skip to content

Commit

Permalink
clearer doc for cell finding utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
katosh committed Jun 13, 2024
1 parent 101ce30 commit 5fe3b46
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/palantir/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


class CellNotFoundException(Exception):
"""Exception raised when no valid component is found for the provided cell type."""
"""Exception raised when no cell could be determined by the used method."""

pass

Expand Down Expand Up @@ -788,7 +788,9 @@ def early_cell(
Key to access multiscale space diffusion components from obsm of ad.
Default is 'DM_EigenVectors_multiscaled'.
fallback_seed : int, optional
Seed for random number generator in fallback method. If not specified, no seed is used.
Seed for random number generator in fallback method. If not specified,
the fallback method is not applied and CellNotFoundException error is
raised instead.
Default is None.
Returns
Expand Down Expand Up @@ -935,8 +937,10 @@ def find_terminal_states(
Key to access multiscale space diffusion components from obsm of ad.
Default is 'DM_EigenVectors_multiscaled'.
fallback_seed : int, optional
Seed for the random number generator used in the fallback method. Defaults to None, in which case
the random number generator will be randomly seeded.
Seed for random number generator in fallback method. If not specified,
the fallback method is not applied and CellNotFoundException error is
raised instead.
Defaults to None.
Returns
-------
Expand Down

0 comments on commit 5fe3b46

Please sign in to comment.