Skip to content

Conversation

@YooSunYoung
Copy link
Member

Fixes #73

We will probably have to update some workflows/notebooks that were using this function.
Not where the function is used, but where the masked objects are used.

@YooSunYoung YooSunYoung marked this pull request as draft April 9, 2025 13:38
samples.data < sample_threshold, sample_threshold, samples.data
)
samples.masks['counts'] = samples.data < sample_threshold
return SampleImageStacks(samples)
Copy link
Member

Choose a reason for hiding this comment

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

How about just using something like

return SampleImageStacks(samples.assign_masks(counts=samples.data < sample_threshold))

?
This would remove the need for the manual copy above.

@YooSunYoung YooSunYoung marked this pull request as ready for review April 10, 2025 09:09
@YooSunYoung YooSunYoung requested a review from nvaytet April 10, 2025 09:25
YooSunYoung and others added 2 commits April 10, 2025 15:10
Co-authored-by: Neil Vaytet <39047984+nvaytet@users.noreply.github.com>
@YooSunYoung YooSunYoung enabled auto-merge (squash) April 10, 2025 13:12
@YooSunYoung YooSunYoung merged commit a14cbfd into main Apr 10, 2025
4 checks passed
@YooSunYoung YooSunYoung deleted the threshold branch April 10, 2025 13: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.

Warn about too many 0 counts.

3 participants