Index error when creating healpix skymap

I’m encountering an index error when registering a healpix skymap:

$ (lsst-scipipe-7.0.1) bash-4.2$ butler --long-log --log-level DEBUG register-skymap ./repo -C ./skymap.py
DEBUG 2023-09-28T17:29:54.338-07:00 lsst.daf.butler.core.config ()(config.py:369) - Opening YAML config file: resource://lsst.daf.butler/configs/dimensions.yaml
DEBUG 2023-09-28T17:29:54.515-07:00 lsst.daf.butler.core.config ()(config.py:369) - Opening YAML config file: file:///data/epyc/projects/DEEP_asteroids/processing/repo/butler.yaml
DEBUG 2023-09-28T17:29:54.517-07:00 lsst.daf.butler.core.config ()(config.py:369) - Opening YAML config file: resource://lsst.daf.butler/configs/registry.yaml
DEBUG 2023-09-28T17:29:54.518-07:00 lsst.daf.butler.core.config ()(config.py:369) - Opening YAML config file: resource://lsst.daf.butler/configs/storageClasses.yaml
DEBUG 2023-09-28T17:29:54.527-07:00 lsst.daf.butler.core.config ()(config.py:369) - Opening YAML config file: resource://lsst.daf.butler/configs/datastore.yaml
DEBUG 2023-09-28T17:29:54.531-07:00 lsst.daf.butler.core.config ()(config.py:369) - Opening YAML config file: resource://lsst.daf.butler/configs/datastores/fileDatastore.yaml
DEBUG 2023-09-28T17:29:54.531-07:00 lsst.daf.butler.core.config ()(config.py:179) - Opening YAML file via !include: resource://lsst.daf.butler/configs/datastores/formatters.yaml
DEBUG 2023-09-28T17:29:54.532-07:00 lsst.daf.butler.core.config ()(config.py:179) - Opening YAML file via !include: resource://lsst.daf.butler/configs/datastores/writeRecipes.yaml
DEBUG 2023-09-28T17:29:54.533-07:00 lsst.daf.butler.core.config ()(config.py:179) - Opening YAML file via !include: resource://lsst.daf.butler/configs/datastores/composites.yaml
DEBUG 2023-09-28T17:29:54.678-07:00 lsst.daf.butler.core.config ()(config.py:369) - Opening YAML config file: resource://lsst.daf.butler/configs/repo_transfer_formats.yaml
DEBUG 2023-09-28T17:29:54.680-07:00 lsst.daf.butler.core.config ()(config.py:369) - Opening YAML config file: resource://lsst.daf.butler/configs/registry.yaml
DEBUG 2023-09-28T17:29:54.683-07:00 lsst.daf.butler.core.config ()(config.py:369) - Opening YAML config file: resource://lsst.daf.butler/configs/registry.yaml
DEBUG 2023-09-28T17:29:54.685-07:00 lsst.daf.butler.core.config ()(config.py:369) - Opening YAML config file: resource://lsst.daf.butler/configs/registry.yaml
DEBUG 2023-09-28T17:29:54.701-07:00 lsst.daf.butler.registry.versions ()(versions.py:233) - found manager config attributes=lsst.daf.butler.registry.attributes.DefaultButlerAttributeManager
DEBUG 2023-09-28T17:29:54.701-07:00 lsst.daf.butler.registry.versions ()(versions.py:233) - found manager config dimensions=lsst.daf.butler.registry.dimensions.static.StaticDimensionRecordStorageManager
DEBUG 2023-09-28T17:29:54.701-07:00 lsst.daf.butler.registry.versions ()(versions.py:233) - found manager config collections=lsst.daf.butler.registry.collections.synthIntKey.SynthIntKeyCollectionManager
DEBUG 2023-09-28T17:29:54.701-07:00 lsst.daf.butler.registry.versions ()(versions.py:233) - found manager config datasets=lsst.daf.butler.registry.datasets.byDimensions._manager.ByDimensionsDatasetRecordStorageManagerUUID
DEBUG 2023-09-28T17:29:54.701-07:00 lsst.daf.butler.registry.versions ()(versions.py:233) - found manager config opaque=lsst.daf.butler.registry.opaque.ByNameOpaqueTableStorageManager
DEBUG 2023-09-28T17:29:54.701-07:00 lsst.daf.butler.registry.versions ()(versions.py:233) - found manager config datastores=lsst.daf.butler.registry.bridge.monolithic.MonolithicDatastoreRegistryBridgeManager
DEBUG 2023-09-28T17:29:54.876-07:00 lsst.daf.butler.core.config ()(config.py:369) - Opening YAML config file: resource://lsst.daf.butler/configs/datastore.yaml
DEBUG 2023-09-28T17:29:54.879-07:00 lsst.daf.butler.core.config ()(config.py:369) - Opening YAML config file: resource://lsst.daf.butler/configs/datastores/fileDatastore.yaml
DEBUG 2023-09-28T17:29:54.880-07:00 lsst.daf.butler.core.config ()(config.py:179) - Opening YAML file via !include: resource://lsst.daf.butler/configs/datastores/formatters.yaml
DEBUG 2023-09-28T17:29:54.882-07:00 lsst.daf.butler.core.config ()(config.py:179) - Opening YAML file via !include: resource://lsst.daf.butler/configs/datastores/writeRecipes.yaml
DEBUG 2023-09-28T17:29:54.884-07:00 lsst.daf.butler.core.config ()(config.py:179) - Opening YAML file via !include: resource://lsst.daf.butler/configs/datastores/composites.yaml
DEBUG 2023-09-28T17:29:54.920-07:00 lsst.daf.butler.core.config ()(config.py:369) - Opening YAML config file: resource://lsst.daf.butler/configs/datastores/composites.yaml
DEBUG 2023-09-28T17:29:54.929-07:00 lsst.daf.butler.core.datastoreCacheManager ()(datastoreCacheManager.py:526) - Cache configuration:
- root: tmpdir
- expiration mode: datasets=4
DEBUG 2023-09-28T17:29:54.933-07:00 lsst.daf.butler.core.config ()(config.py:369) - Opening YAML config file: resource://lsst.daf.butler/configs/storageClasses.yaml
DEBUG 2023-09-28T17:29:54.950-07:00 lsst.daf.butler.core.storageClass ()(storageClass.py:774) - Adding definitions from config file:///data/epyc/projects/DEEP_asteroids/processing/repo/butler.yaml, resource://lsst.daf.butler/configs/storageClasses.yaml
INFO 2023-09-28T17:29:54.959-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:328) - sky map has 48 tracts
INFO 2023-09-28T17:29:54.966-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 0 has corners (225.000, -89.120), (356.296, -55.808), (45.000, -40.931), (93.704, -55.808) (RA, Dec deg) and 97 x 97 patches
INFO 2023-09-28T17:29:54.969-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 1 has corners (315.000, -89.120), (86.296, -55.808), (135.000, -40.931), (183.704, -55.808) (RA, Dec deg) and 97 x 97 patches
INFO 2023-09-28T17:29:54.973-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 2 has corners (45.000, -89.120), (176.296, -55.808), (225.000, -40.931), (273.704, -55.808) (RA, Dec deg) and 97 x 97 patches
INFO 2023-09-28T17:29:54.977-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 3 has corners (135.000, -89.120), (266.296, -55.808), (315.000, -40.931), (3.704, -55.808) (RA, Dec deg) and 97 x 97 patches
INFO 2023-09-28T17:29:54.980-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 4 has corners (0.659, -68.240), (341.957, -41.008), (22.445, -18.607), (49.575, -36.700) (RA, Dec deg) and 83 x 115 patches
INFO 2023-09-28T17:29:54.984-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 5 has corners (89.341, -68.240), (40.425, -36.700), (67.555, -18.607), (108.043, -41.008) (RA, Dec deg) and 115 x 83 patches
INFO 2023-09-28T17:29:54.987-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 6 has corners (90.659, -68.240), (71.957, -41.008), (112.445, -18.607), (139.575, -36.700) (RA, Dec deg) and 83 x 115 patches
INFO 2023-09-28T17:29:54.991-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 7 has corners (179.341, -68.240), (130.425, -36.700), (157.555, -18.607), (198.043, -41.008) (RA, Dec deg) and 115 x 83 patches
INFO 2023-09-28T17:29:54.995-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 8 has corners (180.659, -68.240), (161.957, -41.008), (202.445, -18.607), (229.575, -36.700) (RA, Dec deg) and 83 x 115 patches
INFO 2023-09-28T17:29:54.998-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 9 has corners (269.341, -68.240), (220.425, -36.700), (247.555, -18.607), (288.043, -41.008) (RA, Dec deg) and 115 x 83 patches
INFO 2023-09-28T17:29:55.002-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 10 has corners (270.659, -68.240), (251.957, -41.008), (292.445, -18.607), (319.575, -36.700) (RA, Dec deg) and 83 x 115 patches
INFO 2023-09-28T17:29:55.005-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 11 has corners (359.341, -68.240), (310.425, -36.700), (337.555, -18.607), (18.043, -41.008) (RA, Dec deg) and 115 x 83 patches
INFO 2023-09-28T17:29:55.009-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 12 has corners (0.000, -42.801), (336.646, -19.362), (0.000, 1.124), (23.354, -19.362) (RA, Dec deg) and 85 x 85 patches
INFO 2023-09-28T17:29:55.012-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 13 has corners (45.000, -42.801), (21.646, -19.362), (45.000, 1.124), (68.354, -19.362) (RA, Dec deg) and 85 x 85 patches
INFO 2023-09-28T17:29:55.016-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 14 has corners (90.000, -42.801), (66.646, -19.362), (90.000, 1.124), (113.354, -19.362) (RA, Dec deg) and 85 x 85 patches
INFO 2023-09-28T17:29:55.019-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 15 has corners (135.000, -42.801), (111.646, -19.362), (135.000, 1.124), (158.354, -19.362) (RA, Dec deg) and 85 x 85 patches
INFO 2023-09-28T17:29:55.023-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 16 has corners (180.000, -42.801), (156.646, -19.362), (180.000, 1.124), (203.354, -19.362) (RA, Dec deg) and 85 x 85 patches
INFO 2023-09-28T17:29:55.026-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 17 has corners (225.000, -42.801), (201.646, -19.362), (225.000, 1.124), (248.354, -19.362) (RA, Dec deg) and 85 x 85 patches
INFO 2023-09-28T17:29:55.030-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 18 has corners (270.000, -42.801), (246.646, -19.362), (270.000, 1.124), (293.354, -19.362) (RA, Dec deg) and 85 x 85 patches
INFO 2023-09-28T17:29:55.033-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 19 has corners (315.000, -42.801), (291.646, -19.362), (315.000, 1.124), (338.354, -19.362) (RA, Dec deg) and 85 x 85 patches
INFO 2023-09-28T17:29:55.037-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 20 has corners (22.500, -23.223), (359.277, 0.000), (22.500, 23.223), (45.723, 0.000) (RA, Dec deg) and 90 x 90 patches
INFO 2023-09-28T17:29:55.040-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 21 has corners (67.500, -23.223), (44.277, 0.000), (67.500, 23.223), (90.723, 0.000) (RA, Dec deg) and 90 x 90 patches
INFO 2023-09-28T17:29:55.044-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 22 has corners (112.500, -23.223), (89.277, 0.000), (112.500, 23.223), (135.723, 0.000) (RA, Dec deg) and 90 x 90 patches
INFO 2023-09-28T17:29:55.047-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 23 has corners (157.500, -23.223), (134.277, 0.000), (157.500, 23.223), (180.723, 0.000) (RA, Dec deg) and 90 x 90 patches
INFO 2023-09-28T17:29:55.051-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 24 has corners (202.500, -23.223), (179.277, 0.000), (202.500, 23.223), (225.723, 0.000) (RA, Dec deg) and 90 x 90 patches
INFO 2023-09-28T17:29:55.054-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 25 has corners (247.500, -23.223), (224.277, 0.000), (247.500, 23.223), (270.723, 0.000) (RA, Dec deg) and 90 x 90 patches
INFO 2023-09-28T17:29:55.058-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 26 has corners (292.500, -23.223), (269.277, 0.000), (292.500, 23.223), (315.723, 0.000) (RA, Dec deg) and 90 x 90 patches
INFO 2023-09-28T17:29:55.061-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 27 has corners (337.500, -23.223), (314.277, 0.000), (337.500, 23.223), (0.723, 0.000) (RA, Dec deg) and 90 x 90 patches
INFO 2023-09-28T17:29:55.064-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 28 has corners (0.000, -1.124), (336.646, 19.362), (0.000, 42.801), (23.354, 19.362) (RA, Dec deg) and 85 x 85 patches
INFO 2023-09-28T17:29:55.068-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 29 has corners (45.000, -1.124), (21.646, 19.362), (45.000, 42.801), (68.354, 19.362) (RA, Dec deg) and 85 x 85 patches
INFO 2023-09-28T17:29:55.071-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 30 has corners (90.000, -1.124), (66.646, 19.362), (90.000, 42.801), (113.354, 19.362) (RA, Dec deg) and 85 x 85 patches
INFO 2023-09-28T17:29:55.075-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 31 has corners (135.000, -1.124), (111.646, 19.362), (135.000, 42.801), (158.354, 19.362) (RA, Dec deg) and 85 x 85 patches
INFO 2023-09-28T17:29:55.078-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 32 has corners (180.000, -1.124), (156.646, 19.362), (180.000, 42.801), (203.354, 19.362) (RA, Dec deg) and 85 x 85 patches
INFO 2023-09-28T17:29:55.082-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 33 has corners (225.000, -1.124), (201.646, 19.362), (225.000, 42.801), (248.354, 19.362) (RA, Dec deg) and 85 x 85 patches
INFO 2023-09-28T17:29:55.085-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 34 has corners (270.000, -1.124), (246.646, 19.362), (270.000, 42.801), (293.354, 19.362) (RA, Dec deg) and 85 x 85 patches
INFO 2023-09-28T17:29:55.089-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 35 has corners (315.000, -1.124), (291.646, 19.362), (315.000, 42.801), (338.354, 19.362) (RA, Dec deg) and 85 x 85 patches
INFO 2023-09-28T17:29:55.092-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 36 has corners (22.445, 18.607), (341.956, 41.008), (0.659, 68.240), (49.575, 36.700) (RA, Dec deg) and 115 x 83 patches
INFO 2023-09-28T17:29:55.096-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 37 has corners (67.555, 18.607), (40.425, 36.700), (89.341, 68.240), (108.044, 41.008) (RA, Dec deg) and 83 x 115 patches
INFO 2023-09-28T17:29:55.100-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 38 has corners (112.445, 18.607), (71.956, 41.008), (90.659, 68.240), (139.575, 36.700) (RA, Dec deg) and 115 x 83 patches
INFO 2023-09-28T17:29:55.103-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 39 has corners (157.555, 18.607), (130.425, 36.700), (179.341, 68.240), (198.044, 41.008) (RA, Dec deg) and 83 x 115 patches
INFO 2023-09-28T17:29:55.107-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 40 has corners (202.445, 18.607), (161.956, 41.008), (180.659, 68.240), (229.575, 36.700) (RA, Dec deg) and 115 x 83 patches
INFO 2023-09-28T17:29:55.110-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 41 has corners (247.555, 18.607), (220.425, 36.700), (269.341, 68.240), (288.044, 41.008) (RA, Dec deg) and 83 x 115 patches
INFO 2023-09-28T17:29:55.113-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 42 has corners (292.445, 18.607), (251.956, 41.008), (270.659, 68.240), (319.575, 36.700) (RA, Dec deg) and 115 x 83 patches
INFO 2023-09-28T17:29:55.117-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 43 has corners (337.555, 18.607), (310.425, 36.700), (359.341, 68.240), (18.044, 41.008) (RA, Dec deg) and 83 x 115 patches
INFO 2023-09-28T17:29:55.120-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 44 has corners (45.000, 40.931), (356.296, 55.808), (225.000, 89.120), (93.704, 55.808) (RA, Dec deg) and 97 x 97 patches
INFO 2023-09-28T17:29:55.124-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 45 has corners (135.000, 40.931), (86.296, 55.808), (315.000, 89.120), (183.704, 55.808) (RA, Dec deg) and 97 x 97 patches
INFO 2023-09-28T17:29:55.127-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 46 has corners (225.000, 40.931), (176.296, 55.808), (45.000, 89.120), (273.704, 55.808) (RA, Dec deg) and 97 x 97 patches
INFO 2023-09-28T17:29:55.130-07:00 lsst.pipe.tasks.script.registerSkymap ()(baseSkyMap.py:340) - tract 47 has corners (315.000, 40.931), (266.296, 55.808), (135.000, 89.120), (3.704, 55.808) (RA, Dec deg) and 97 x 97 patches
DEBUG 2023-09-28T17:29:55.143-07:00 lsst.daf.butler.registry.dimensions.table ()(table.py:332) - Precomputing common skypix overlaps for tract.
DEBUG 2023-09-28T17:29:55.146-07:00 lsst.daf.butler.registry.dimensions.table ()(table.py:343) - Inserting 4634 new skypix overlap rows for tract.
DEBUG 2023-09-28T17:29:56.384-07:00 lsst.daf.butler.registry.dimensions.table ()(table.py:332) - Precomputing common skypix overlaps for patch.
DEBUG 2023-09-28T17:29:56.983-07:00 lsst.daf.butler.registry.dimensions.table ()(table.py:343) - Inserting 33020 new skypix overlap rows for patch.
DEBUG 2023-09-28T17:29:57.725-07:00 lsst.daf.butler.registry.dimensions.table ()(table.py:332) - Precomputing common skypix overlaps for tract.
DEBUG 2023-09-28T17:29:57.729-07:00 lsst.daf.butler.registry.dimensions.table ()(table.py:343) - Inserting 4634 new skypix overlap rows for tract.
DEBUG 2023-09-28T17:29:58.705-07:00 lsst.daf.butler.registry.dimensions.table ()(table.py:332) - Precomputing common skypix overlaps for patch.
DEBUG 2023-09-28T17:29:59.205-07:00 lsst.daf.butler.registry.dimensions.table ()(table.py:343) - Inserting 33020 new skypix overlap rows for patch.
DEBUG 2023-09-28T17:30:00.104-07:00 lsst.daf.butler.registry.dimensions.table ()(table.py:332) - Precomputing common skypix overlaps for tract.
DEBUG 2023-09-28T17:30:00.106-07:00 lsst.daf.butler.registry.dimensions.table ()(table.py:343) - Inserting 4634 new skypix overlap rows for tract.
DEBUG 2023-09-28T17:30:01.351-07:00 lsst.daf.butler.registry.dimensions.table ()(table.py:332) - Precomputing common skypix overlaps for patch.
DEBUG 2023-09-28T17:30:01.833-07:00 lsst.daf.butler.registry.dimensions.table ()(table.py:343) - Inserting 33020 new skypix overlap rows for patch.
DEBUG 2023-09-28T17:30:02.700-07:00 lsst.daf.butler.registry.dimensions.table ()(table.py:332) - Precomputing common skypix overlaps for tract.
DEBUG 2023-09-28T17:30:02.703-07:00 lsst.daf.butler.registry.dimensions.table ()(table.py:343) - Inserting 4634 new skypix overlap rows for tract.
DEBUG 2023-09-28T17:30:03.564-07:00 lsst.daf.butler.registry.dimensions.table ()(table.py:332) - Precomputing common skypix overlaps for patch.
DEBUG 2023-09-28T17:30:03.992-07:00 lsst.daf.butler.registry.dimensions.table ()(table.py:343) - Inserting 33020 new skypix overlap rows for patch.
DEBUG 2023-09-28T17:30:04.785-07:00 lsst.daf.butler.registry.dimensions.table ()(table.py:332) - Precomputing common skypix overlaps for tract.
DEBUG 2023-09-28T17:30:04.787-07:00 lsst.daf.butler.registry.dimensions.table ()(table.py:343) - Inserting 3995 new skypix overlap rows for tract.
ERROR 2023-09-28T17:30:05.580-07:00 lsst.daf.butler.cli.utils ()(utils.py:1133) - Caught an exception, details are in traceback:
Traceback (most recent call last):
  File "/nvme/users/stevengs/opt_lsst/conda/envs/lsst-scipipe-7.0.1/share/eups/Linux64/pipe_tasks/ge37a0ae47b+91d6b12347/python/lsst/pipe/tasks/cli/cmd/commands.py", line 67, in register_skymap
    script.registerSkymap.registerSkymap(*args, **kwargs)
  File "/nvme/users/stevengs/opt_lsst/conda/envs/lsst-scipipe-7.0.1/share/eups/Linux64/pipe_tasks/ge37a0ae47b+91d6b12347/python/lsst/pipe/tasks/script/registerSkymap.py", line 99, in registerSkymap
    makeSkyMap(butler, skyMapConfig)
  File "/nvme/users/stevengs/opt_lsst/conda/envs/lsst-scipipe-7.0.1/share/eups/Linux64/pipe_tasks/ge37a0ae47b+91d6b12347/python/lsst/pipe/tasks/script/registerSkymap.py", line 65, in makeSkyMap
    skyMap.register(config.name, butler)
  File "/nvme/users/stevengs/opt_lsst/conda/envs/lsst-scipipe-7.0.1/share/eups/Linux64/skymap/g93973518b8+01a0ac5232/python/lsst/skymap/baseSkyMap.py", line 464, in register
    for patchInfo in tractInfo:
  File "/nvme/users/stevengs/opt_lsst/conda/envs/lsst-scipipe-7.0.1/share/eups/Linux64/skymap/g93973518b8+01a0ac5232/python/lsst/skymap/tractInfo.py", line 388, in __iter__
    yield self.getPatchInfo(Index2D(x=x, y=y))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nvme/users/stevengs/opt_lsst/conda/envs/lsst-scipipe-7.0.1/share/eups/Linux64/skymap/g93973518b8+01a0ac5232/python/lsst/skymap/tractInfo.py", line 323, in getPatchInfo
    return self._tractBuilder.getPatchInfo(index, self._wcs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nvme/users/stevengs/opt_lsst/conda/envs/lsst-scipipe-7.0.1/share/eups/Linux64/skymap/g93973518b8+01a0ac5232/python/lsst/skymap/tractBuilder.py", line 236, in getPatchInfo
    raise IndexError("Patch index %s is not in range [0-%d, 0-%d]" %
IndexError: Patch index Index2D(x=0, y=97) is not in range [0-96, 0-96]
$ cat skymap.py
config.name = "all_sky_healpix"
config.skyMap = "healpix"
config.skyMap['healpix'].pixelScale = 0.263
config.skyMap['healpix'].projection = "STG"
config.skyMap['healpix'].log2NSide = 1

The index error occurs for all values I’ve tested for log2NSide except 0. Skymap registration succeeded for log2NSide=0.

Using weekly w_2023_38.

I’m afraid the HEALPix skymap type is one we’ve essentially never used, and it’s probably a bit irresponsible for us to have left it in the codebase at all. From the error message it seems to be calculating its own maximum number of patches incorrectly for this configuration, and to be honest I think I’d prefer to remove it over trying to fix it.

Is there any chance you could use a different skymap implementation instead, like the “rings” one?

Hi @stevenstetzler , could you confirm whether @jbosch 's suggestion to use a different skymap worked for you? If so we could mark that as the solution.

Thanks, I can use a different skymap implementation. I was just experimenting with different skymap types.