Skip to content

Commit

Permalink
Merge pull request #284 from astronomy-commons/sean/paths
Browse files Browse the repository at this point in the history
Use faster hipscat paths method
  • Loading branch information
smcguire-cmu authored Apr 24, 2024
2 parents 12ec915 + fa9288e commit 80a7b2c
Showing 1 changed file with 3 additions and 8 deletions.
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

0 comments on commit 80a7b2c

Please sign in to comment.