Skip to content

calcNeSqdToNormPerKpc3 only works with float64 redshift #6

@xyzhang-mpe

Description

@xyzhang-mpe

Hi Jeremy,

The -inf likelihood problem is finally solved. It turns out that calcNeSqdToNormPerKpc3 returns nan if a float32 redshift is loaded into Cosmology, by chance that a FITS catalog stores everything in float32.

A type conversion in Cosmology.__init__() is necessary to avoid this issue.

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