-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d0792af
commit b262db2
Showing
3 changed files
with
15 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
from __future__ import annotations | ||
from typing import Dict, List, Tuple | ||
|
||
from typing import Dict, List, Tuple, TypeVar | ||
|
||
from hipscat.catalog.healpix_dataset.healpix_dataset import HealpixDataset as HCHealpixDataset | ||
from hipscat.pixel_math import HealpixPixel | ||
from typing_extensions import TypeAlias | ||
|
||
from lsdb.catalog.dataset.dataset import Dataset | ||
|
||
# Compute pixel map returns a tuple. The first element is | ||
# the number of data points within the HEALPix pixel, the | ||
# second element is the list of pixels it contains. | ||
HealpixInfo: TypeAlias = Tuple[int, List[int]] | ||
DaskDFPixelMap = Dict[HealpixPixel, int] | ||
|
||
# Generic lsdb and hipscat catalog types | ||
CatalogTypeVar = TypeVar("CatalogTypeVar", bound=Dataset) | ||
HCCatalogTypeVar = TypeVar("HCCatalogTypeVar", bound=HCHealpixDataset) | ||
DaskDFPixelMap = Dict[HealpixPixel, int] |