Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use faster hipscat paths method #284

Merged
merged 2 commits into from
Apr 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions src/lsdb/loaders/hipscat/abstract_catalog_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,9 @@ def _load_dask_df_and_map(self, catalog: HCHealpixDataset) -> Tuple[dd.DataFrame
def _get_paths_from_pixels(
self, catalog: HCHealpixDataset, ordered_pixels: List[HealpixPixel]
) -> List[hc.io.FilePointer]:
paths = [
hc.io.paths.pixel_catalog_file(
catalog_base_dir=catalog.catalog_base_dir,
pixel_order=pixel.order,
pixel_number=pixel.pixel,
)
for pixel in ordered_pixels
]
paths = hc.io.paths.pixel_catalog_files(
catalog.catalog_base_dir, ordered_pixels, self.storage_options
)
return paths

def _load_df_from_paths(
Expand Down