Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚚 Rename dev to core #349

Merged
merged 1 commit into from
Feb 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions lnschema_core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
from lamin_utils._inspect import InspectResult

if TYPE_CHECKING or _INSTANCE_SETUP:
from lamindb.dev import FeatureManager, LabelManager
from lamindb.core import FeatureManager, LabelManager


IPYTHON = getattr(builtins, "__IPYTHON__", False)
Expand Down Expand Up @@ -114,7 +114,7 @@ def view_tree(


class CanValidate:
"""Base class providing :class:`~lamindb.dev.Registry`-based validation."""
"""Base class providing :class:`~lamindb.core.Registry`-based validation."""

@classmethod
def inspect(
Expand All @@ -138,7 +138,7 @@ def inspect(
mute: Mute logging.

See Also:
:meth:`~lamindb.dev.CanValidate.validate`
:meth:`~lamindb.core.CanValidate.validate`

Examples:
>>> import bionty as bt
Expand Down Expand Up @@ -181,7 +181,7 @@ def validate(
A vector of booleans indicating if an element is validated.

See Also:
:meth:`~lamindb.dev.CanValidate.inspect`
:meth:`~lamindb.core.CanValidate.inspect`

Examples:
>>> import bionty as bt
Expand Down Expand Up @@ -236,9 +236,9 @@ def standardize(
standardized names as values.

See Also:
:meth:`~lamindb.dev.CanValidate.add_synonym`
:meth:`~lamindb.core.CanValidate.add_synonym`
Add synonyms
:meth:`~lamindb.dev.CanValidate.remove_synonym`
:meth:`~lamindb.core.CanValidate.remove_synonym`
Remove synonyms

Examples:
Expand Down Expand Up @@ -290,7 +290,7 @@ def add_synonym(
save

See Also:
:meth:`~lamindb.dev.CanValidate.remove_synonym`
:meth:`~lamindb.core.CanValidate.remove_synonym`
Remove synonyms

Examples:
Expand All @@ -313,7 +313,7 @@ def remove_synonym(self, synonym: Union[str, ListLike]):
synonym: The synonym value.

See Also:
:meth:`~lamindb.dev.CanValidate.add_synonym`
:meth:`~lamindb.core.CanValidate.add_synonym`
Add synonyms

Examples:
Expand All @@ -335,7 +335,7 @@ def set_abbr(self, value: str):
value: A value for an abbreviation.

See Also:
:meth:`~lamindb.dev.CanValidate.add_synonym`
:meth:`~lamindb.core.CanValidate.add_synonym`
Add synonyms

Examples:
Expand Down Expand Up @@ -460,7 +460,7 @@ def lookup(
dictionary converter.

See Also:
:meth:`~lamindb.dev.Registry.search`
:meth:`~lamindb.core.Registry.search`

Examples:
>>> import bionty as bt
Expand All @@ -484,7 +484,7 @@ def filter(cls, **expressions) -> "QuerySet":
expressions: Fields and values passed as Django query expressions.

Returns:
A :class:`~lamindb.dev.QuerySet`.
A :class:`~lamindb.core.QuerySet`.

See Also:
- Guide: :doc:`meta`
Expand Down Expand Up @@ -543,8 +543,8 @@ def search(
If `return_queryset` is `True`, an ordered `QuerySet`.

See Also:
:meth:`~lamindb.dev.Registry.filter`
:meth:`~lamindb.dev.Registry.lookup`
:meth:`~lamindb.core.Registry.filter`
:meth:`~lamindb.core.Registry.lookup`

Examples:
>>> ln.save(ln.ULabel.from_values(["ULabel1", "ULabel2", "ULabel3"], field="name"))
Expand Down Expand Up @@ -587,12 +587,12 @@ class Data:

@property
def features(self) -> "FeatureManager":
"""Feature manager (:class:`~lamindb.dev.FeatureManager`)."""
"""Feature manager (:class:`~lamindb.core.FeatureManager`)."""
pass

@property
def labels(self) -> "LabelManager":
"""Label manager (:class:`~lamindb.dev.LabelManager`)."""
"""Label manager (:class:`~lamindb.core.LabelManager`)."""
pass

def describe(self):
Expand Down Expand Up @@ -693,7 +693,7 @@ class Storage(Registry):
Can be local or remote directories or entire S3/GCP buckets.

See Also:
Default storage: :attr:`~lamindb.dev.Settings.storage`
Default storage: :attr:`~lamindb.core.Settings.storage`

Examples:

Expand Down Expand Up @@ -1107,7 +1107,7 @@ class Feature(Registry, CanValidate):
See Also:
:meth:`~lamindb.Feature.from_df`
Create feature records from DataFrame.
:attr:`~lamindb.dev.Data.features`
:attr:`~lamindb.core.Data.features`
Manage feature annotations of artifacts & collections.
:meth:`lamindb.ULabel`
ULabels for artifacts & collections.
Expand Down
Loading