Skip to content

Can Table masking be turned off? #12981

Closed

Description

@weaverba137

Description

As of Astropy 5, when astropy.table.Table.read() encounters values such as NaN, it automatically creates a MaskedColumn and the whole table becomes a MaskedTable. While this might be useful for individual end-users, it is very inconvenient for intermediate data in pipelines.

Here's the scenario: data are being passed via files and Table.read(). A downstream function needs to replace NaN with valid values. Previously those values could be easily identified (e.g. np.isnan() and replaced. However, now additional work is need to look "underneath" the mask, extracting the actual values, replacing them, and then possibly creating a new, unmasked column, or even an entirely new table.

Ideally, a keyword like Table.read(filename, ..., mask=False) would disable this behavior, for people who don't need this masking.

Activity

  1. saimn commented on Mar 23, 2022

    @saimn
    Contributor

    It looks like I opened a PR for this some time ago (I had almost forgotten) : #12544

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions