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

Commit

Permalink
♻️ Simplify run_context
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Aug 14, 2024
1 parent 257087d commit 8c4b4ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lnschema_core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def current_run() -> Run | None:
if _TRACKING_READY:
import lamindb.core

return lamindb.core.run_context.run
return lamindb.context.run
else:
return None

Expand Down Expand Up @@ -1303,12 +1303,12 @@ class Run(Record, HasParams):
Create a global run context:
>>> ln.track(transform=transform)
>>> ln.core.run_context.run # global available run
>>> ln.context.run # global available run
Track a notebook run:
>>> ln.track() # Jupyter notebook metadata is automatically parsed
>>> ln.core.context.run
>>> ln.context.run
"""

_name_field: str = "started_at"
Expand Down

0 comments on commit 8c4b4ee

Please sign in to comment.