Skip to content

Conversation

@jokasimr
Copy link
Contributor

Fixes #3699

"metadata": {},
"source": [
"In the example above the mask was specified as the data array was created.\n",
"But like for `coords` masks can also be assigned after the data array was created:"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor]

Suggested change
"But like for `coords` masks can also be assigned after the data array was created:"
"However, similar to `coords`, `masks` can also be assigned on an existing `DataArray` instance:"

Sth like this maybe...?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that's better, I'll update and reword it similar to that

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure we can assign to masks? I suppose you mean setting items?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the interface is called assign_masks though...?
You mean it's not possble on the same instance?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assign_masks return a new object, yes. Also, the example right after this text sets a mask. It is not assigning the masks property.

@YooSunYoung YooSunYoung enabled auto-merge August 4, 2025 08:23
@YooSunYoung
Copy link
Member

YooSunYoung commented Aug 5, 2025

@scipp/scipp-maintainers
Can someone with authority update the mandatory tests to be build and test XX-14, py3.11 from py3.10?
Ah never mind. I read it wrong : D

@YooSunYoung YooSunYoung merged commit fac4881 into main Aug 5, 2025
4 checks passed
@YooSunYoung YooSunYoung deleted the docs-masking branch August 5, 2025 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make masking docs more explicit

4 participants