Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
🚚 Replace ln.track() with ln.context.track()
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Aug 14, 2024
1 parent 8c4b4ee commit 897f3a2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lnschema_core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1133,7 +1133,7 @@ class Transform(Record, IsVersioned):
Create a transform from a notebook:
>>> ln.track()
>>> ln.context.track()
View parents of a transform:
Expand Down Expand Up @@ -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
"""

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 897f3a2

Please sign in to comment.