Skip to content

Masked WeightedSumView returns copy? #371

Open
@HDembinski

Description

@HDembinski

I tried to assign to a WeightedSumView. It works correctly, when the view is not masked, but if it is masked, it does not work. Pseudo code:

v = some_weighted_hist.view()
v.value[:] = [1, 2, 3] # work ok, v.value is now [1, 2, 3]
v[v.value == 2].value[:] = [3] # does not work, v.value is still [1, 2, 3]

I suppose that the masking operation returns a copy instead of a view.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions