Skip to content

Dataset.copy() drops encoding #1586

Closed
Closed
@crusaderky

Description

@crusaderky
ds = Dataset()
ds.encoding = {"unlimited_dims": 'x'}
ds.copy().encoding
{}

By looking at dataset.py, there's a lot of calls to Dataset._construct_direct that omit the encoding. Is it correct to add it in all cases?

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