Skip to content

Checking that Interpolator returns a float (and not xarray DataArray) #2114

@erikvansebille

Description

@erikvansebille

I just spent an hour chasing an issue in xgrid.search() that turned out to be the result of the custom Interpolator that I used returned a DataArray. This is an easy mistake to make as a user when they don't return the Field.data.value

We should thus check that the return type of any Interpolator is a float

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Backlog

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions