Skip to content

can't print deepcopy of masked Table #19408

@PriNone

Description

@PriNone

Description

Print the deepcopy of a masked Table raise an AttributeError.

Expected behavior

Print the deepcopy of masked Table

How to Reproduce

from astropy.table import Table
from copy import deepcopy
t1 = Table([(1, 2)], names=('a'), masked=True)
t2 = deepcopy(t1)
print(t2)
AttributeError: 'astropy.table.column.MaskedColumnInfo' object has no attribute '_format_funcs'

Versions

platform
--------
platform.platform() = 'Linux-6.8.0-53-generic-x86_64-with-glibc2.39'
platform.version() = '#55-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 17 15:37:52 UTC 2025'
platform.python_version() = '3.13.2'

packages
--------
astropy              7.1.0
numpy                2.1.3
scipy                1.16.2
matplotlib           3.10.0
pandas               2.3.3
pyerfa               2.0.1.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions