Skip to content

Column scalars#252

Merged
AstroPatty merged 16 commits into
mainfrom
column-scalars
Jun 10, 2026
Merged

Column scalars#252
AstroPatty merged 16 commits into
mainfrom
column-scalars

Conversation

@AstroPatty

Copy link
Copy Markdown
Member

This PR implements scalars in column arithmetic, stuff like

scaled_mass = oc.col("fof_halo_mass") / oc.col("fof_halo_mass").mean()

Scalars can also be selected, as long as they are the only thing selected. This works with the "global" mode introduced in 1.3, allowing these to be done across all ranks.

column = oc.col("fof_halo_mass")
mass_range = ds.select(min_mass = column.min(), max_mass = column.max(), mode="global").get_data()

@AstroPatty AstroPatty enabled auto-merge June 10, 2026 20:19
@AstroPatty AstroPatty merged commit f4effe7 into main Jun 10, 2026
54 of 58 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