Skip to content

Can .pint.magnitude return a DataArray instead? #151

@dcherian

Description

@dcherian

Currently DataArray.pint.magnitude returns a numpy array. Can it return a DataArray instead? We can always extract the numpy array using DataArray.data.magnitude.

Just realized I can also use DataArray.as_numpy() but perhaps this is still worth considering?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions