diff --git a/lnschema_core/models.py b/lnschema_core/models.py index ab41cc1f..0517ce23 100644 --- a/lnschema_core/models.py +++ b/lnschema_core/models.py @@ -1098,7 +1098,7 @@ class Transform(Record, IsVersioned): If you switch on :attr:`~lamindb.core.Settings.sync_git_repo` a script-like transform is - synched to its hashed state in a git repository upon calling `ln.track()`. + synched to its hashed state in a git repository upon calling `ln.context.track()`. The definition of transforms and runs is consistent the OpenLineage specification where a :class:`~lamindb.Transform` record would be called a @@ -1133,7 +1133,7 @@ class Transform(Record, IsVersioned): Create a transform from a notebook: - >>> ln.track() + >>> ln.context.track() View parents of a transform: @@ -1302,12 +1302,12 @@ class Run(Record, HasParams): Create a global run context: - >>> ln.track(transform=transform) + >>> ln.context.track(transform=transform) >>> ln.context.run # global available run Track a notebook run: - >>> ln.track() # Jupyter notebook metadata is automatically parsed + >>> ln.context.track() # Jupyter notebook metadata is automatically parsed >>> ln.context.run """ @@ -2231,7 +2231,7 @@ def replace( Args: data: A file path. run: The run that created the artifact gets - auto-linked if ``ln.track()`` was called. + auto-linked if ``ln.context.track()`` was called. Examples: Say we made a change to the content of an artifact, e.g., edited the image