Skip to content

Commit 4ef9952

Browse files
authored
Merge pull request #374 from astronomy-commons/sean/healpix-plotting
Add custom healpix plotting method
2 parents 1628457 + 23436e0 commit 4ef9952

File tree

7 files changed

+1030
-152
lines changed

7 files changed

+1030
-152
lines changed

src/.pylintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ max-bool-expr=5
293293
max-branches=20
294294

295295
# Maximum number of locals for function / method body.
296-
max-locals=20
296+
max-locals=25
297297

298298
# Maximum number of parents for a class (see R0901).
299299
max-parents=7

src/hats/catalog/healpix_dataset/healpix_dataset.py

+9
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from hats.catalog.dataset import Dataset
1616
from hats.catalog.dataset.table_properties import TableProperties
1717
from hats.catalog.partition_info import PartitionInfo
18+
from hats.inspection import plot_pixels
1819
from hats.io import file_io, paths
1920
from hats.io.file_io import read_parquet_metadata
2021
from hats.pixel_math import HealpixPixel
@@ -225,3 +226,11 @@ def align(
225226
return align_with_mocs(
226227
self.pixel_tree, other_cat.pixel_tree, self.moc, other_cat.moc, alignment_type=alignment_type
227228
)
229+
230+
def plot_pixels(self, **kwargs):
231+
"""Create a visual map of the pixel density of the catalog.
232+
233+
Args:
234+
kwargs: Additional args to pass to `hipscat.inspection.visualize_catalog.plot_healpix_map`
235+
"""
236+
return plot_pixels(self, **kwargs)

0 commit comments

Comments
 (0)