Skip to content

Fix unbound particle masking in haloquantity lookup - #233

Merged
cbyrohl merged 1 commit into
mainfrom
fix/haloquantity-unbound-index
Mar 13, 2026
Merged

cbyrohl merged 1 commit into
mainfrom
fix/haloquantity-unbound-index

Conversation

@cbyrohl

@cbyrohl cbyrohl commented Mar 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fix incorrect unbound particle check in get_haloquantity_daskwrap (was comparing against -1 instead of index_unbound)
  • Thread index_unbound parameter through to the dask wrapper
  • Add support for 2D halo quantities (e.g. positions/velocities)

Test plan

  • Verify haloquantity lookup for datasets with unbound particles
  • Test with 2D halo quantities (positions, velocities)

🤖 Generated with Claude Code

…lo quantities

The unbound particle check in get_haloquantity_daskwrap compared against -1,
but get_hidx marks unbound particles with index_unbound (int64 max by default).
This caused unbound particles to be incorrectly looked up. Also adds support
for 2D halo quantities (e.g. positions/velocities) via drop_axis/new_axis.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cbyrohl
cbyrohl merged commit a7e3591 into main Mar 13, 2026
4 checks passed
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.

1 participant