Skip to content

Commit 6aff924

Browse files
committed
rename ldf to dataset for consistency
1 parent 9cf51b1 commit 6aff924

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

luxonis_ml/data/exporters/exporter_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ def __init__(
2828
self.grouped_image_sources = grouped_image_sources
2929

3030
@classmethod
31-
def from_dataset(cls, ldf: "LuxonisDataset") -> "PreparedLDF":
31+
def from_dataset(cls, dataset: "LuxonisDataset") -> "PreparedLDF":
3232
"""Prepare a dataset for export into the LDF representation."""
33-
splits = ldf.get_splits()
33+
splits = dataset.get_splits()
3434
if splits is None:
3535
raise ValueError("Cannot export dataset without splits")
3636

37-
df = ldf._load_df_offline(raise_when_empty=True).with_row_count(
37+
df = dataset._load_df_offline(raise_when_empty=True).with_row_count(
3838
"row_idx"
3939
)
4040

@@ -53,7 +53,7 @@ def resolve_path(
5353
pl.struct(["file", "uuid"])
5454
.map_elements(
5555
lambda r: resolve_path(
56-
r["file"], r["uuid"], str(ldf.media_path)
56+
r["file"], r["uuid"], str(dataset.media_path)
5757
),
5858
return_dtype=pl.Utf8,
5959
)

0 commit comments

Comments
 (0)