Skip to content

Attrs are lost in mathematical computation #1271

Closed
@fujiisoup

Description

@fujiisoup

Related to #138

Why is keep_attrs option in reduce method set to FALSE by default?
I feel it is more natural to keep all the attrs after some computation that returns xr.DaraArray
Such as data*100.
(By it is not possible to set this option TRUE when using an operator.)
Is it an option to move this option to init method, in case of TRUE all the attrs are tracked after computations of the object and also the object generated from this object?

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic-metadataRelating to the handling of metadata (i.e. attrs and encoding)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions