Skip to content

Commit

Permalink
Revert dataset.py changes
Browse files Browse the repository at this point in the history
  • Loading branch information
westonpace committed Jun 20, 2024
1 parent cb34966 commit 062ac38
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions python/python/lance/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
)
from .dependencies import numpy as np
from .dependencies import pandas as pd
from .file import LanceFileWriter
from .fragment import FragmentMetadata, LanceFragment
from .lance import (
CleanupStats,
Expand Down Expand Up @@ -1487,14 +1486,6 @@ def create_index(
metric,
accelerator,
)
arrow_ivf_centroids = pa.FixedSizeListArray.from_arrays(
ivf_centroids.reshape(-1), ivf_centroids.shape[1]
)
tab = pa.table({"ivf_centroids": arrow_ivf_centroids})
with LanceFileWriter(
"/tmp/ivf_centroids.lance", schema=tab.schema
) as f:
f.write_batch(tab)
kwargs["precomputed_partitions_file"] = partitions_file

if (ivf_centroids is None) and (pq_codebook is not None):
Expand Down

0 comments on commit 062ac38

Please sign in to comment.