Skip to content

GalaxyCatalogMaker Issues #94

@DJW-astronomy

Description

@DJW-astronomy

Hi there,

I'm having trouble getting my input galaxy catalog to work with redmapper.GalaxyCatalogMaker. I have made sure my input fits table has the required data types outlined in the first step of redMaPPer's HOW-TO. I tried appending the whole galaxy catalog in one line (first error below), and also tried appending one galaxy at a time in a for loop (2nd error below) like is done in the HOW-TO example. Any help you can provide is much appreciated.

Traceback (most recent call last):
File "PATH/catalog_maker.py", line 46, in
maker.append_galaxies(galaxy_catalog)
File "PATH/lib/python3.11/site-packages/redmapper-0.8.5-py3.11-linux-x86_64.egg/redmapper/galaxy.py", line 768, in append_galaxies
raise RuntimeError("We think there are 0 galaxies in pixel %d, but the file exists." % (pix))
RuntimeError: We think there are 0 galaxies in pixel 5749, but the file exists.

Traceback (most recent call last):
File "PATH/catalog_maker.py", line 46, in
maker.append_galaxies(galaxies[i])
File "PATH/lib/python3.11/site-packages/redmapper-0.8.5-py3.11-linux-x86_64.egg/redmapper/galaxy.py", line 731, in append_galaxies
self._check_galaxies(gals)
File "PATH/lib/python3.11/site-packages/redmapper-0.8.5-py3.11-linux-x86_64.egg/redmapper/galaxy.py", line 998, in _check_galaxies
if len(np.unique(gals['id'])) < len(gals['id']):
^^^^^^^^^^^^^^^
TypeError: object of type 'numpy.int64' has no len()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions