Skip to content

Allow lazy expression slices in assignments #611

@FrancescAlted

Description

@FrancescAlted

The same way that lazy expressions are evaluated in getitem contexts like:

res = iarr2[iarr >= 0.5].eval()

the next should be possible too:

iarr2[iarr >= 0.5] = 1

the result will be iarr2 values being 1 when the iarr >= 0.5 condition is fulfilled, and NaNs elsewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PythonIssues related to Python wrapperenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions