Skip to content

LazyUDF fails with integer indices #533

@lshaw8317

Description

@lshaw8317
import blosc2

def udf1p(inputs, output, offset):
    x = inputs[0]
    offset[:] = x + 1

shape = (23,)
array = blosc2.ones(shape)
expr = blosc2.lazyudf(udf1p, (array,), np.float64, shape)
res_lazyexpr = expr[2]

fails because LazyUDF defines an out parameter. Probably it is necessary to rewrite some of the __getitem__ function to correctly calculate the out shape as a function of the desired slice.

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