From d928c82f15de94b2c0f2e08806992198e95ea787 Mon Sep 17 00:00:00 2001 From: Melissa DeLucchi <113376043+delucchi-cmu@users.noreply.github.com> Date: Wed, 20 Nov 2024 16:37:53 -0500 Subject: [PATCH] Allow import of map types. (#437) --- src/hats_import/catalog/arguments.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hats_import/catalog/arguments.py b/src/hats_import/catalog/arguments.py index 51af2724..6bc13535 100644 --- a/src/hats_import/catalog/arguments.py +++ b/src/hats_import/catalog/arguments.py @@ -105,8 +105,8 @@ def _check_arguments(self): raise ValueError("pixel_threshold should be between 100 and 1,000,000,000") self.mapping_healpix_order = self.highest_healpix_order - if self.catalog_type not in ("source", "object"): - raise ValueError("catalog_type should be one of `source` or `object`") + if self.catalog_type not in ("source", "object", "map"): + raise ValueError("catalog_type should be one of `source`, `object`, or `map`") if self.file_reader is None: raise ValueError("file_reader is required")