Skip to content

lookup fills vectors with 0 #3860

Closed

Description

@jl-wynen

sc.lookup has a fill_value parameter for points outside the lookup table. It defaults to NaN for floats and to 0 for integers. Based on that, I would expect that vectors are filled with [NaN, NaN, NaN]. But they are filled with [0, 0, 0].

To change this, we only need an extra case in make_fill.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions