Skip to content

Support scatter assignment of values in an array api complient way #57

@EddyCMWF

Description

@EddyCMWF

Is your feature request related to a problem? Please describe.

Currently there are instances where data is assigned to arrays in-place, e.g. here:
https://github.com/ecmwf/earthkit-transforms/blob/main/src/earthkit/transforms/aggregate/spatial.py#L159

This does not conform to the array-api standard, and could lead to issues when using non-numpy backends. Update using similar/the same techniques as ek-hydro.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Organisation

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions