Skip to content

Prevent in-place changes of catalog ra/dec #1307

@camposandro

Description

@camposandro

We must not update the coordinates (ra/dec) of a catalog in place. That is an "illegal" action that breaks the HATS partitioning structure (e.g. _healpix_29, as well as margins, which we need for most spatial operations to be accurate). We should probably have a safeguard in methods that wrap user-defined functions (map_partitions, map_rows, merge_map), to prevent the users from making this mistake.

Motivation: Please see dp2_gaia_epoch_propagation.ipynb (section 5). If we had updated the Gaia coordinates in place instead of creating two new columns ("ra_corr", "dec_corr"), no errors would have been raised.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions