Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
Signed-off-by: zethson <[email protected]>
  • Loading branch information
Zethson committed Oct 25, 2024
1 parent fb92d51 commit ebde85c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pertpy/data/_perturbation_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@


class _PerturbationValidatorUnavailable:
"""Curator flow for Perturbation data - see pertpy-datasets."""

def __init__(self):
raise RuntimeError("PerturbationValidator can only be instantiated if connected to a lamindb instance.")

Expand Down Expand Up @@ -44,6 +46,8 @@ def __init__(self):
}

class PerturbationCurator(Curate):
"""Curator flow for Perturbation data - see pertpy-datasets."""

def __init__(
self,
adata: ad.AnnData | UPathStr,
Expand Down Expand Up @@ -96,8 +100,6 @@ def validate(self) -> bool:

except ImproperlyConfigured:
PerturbationCurator = _PerturbationValidatorUnavailable # type: ignore
# The sphinx docs currently don't have a lamin instance set up
_PerturbationValidatorUnavailable.__doc__ = PerturbationCurator.__doc__

except ImportError:
PerturbationCurator = _PerturbationValidatorUnavailable # type: ignore

0 comments on commit ebde85c

Please sign in to comment.