Skip to content

fix: make sure coord remains after binnning#254

Open
jokasimr wants to merge 3 commits intomainfrom
fix-beer-3d
Open

fix: make sure coord remains after binnning#254
jokasimr wants to merge 3 commits intomainfrom
fix-beer-3d

Conversation

@jokasimr
Copy link
Contributor

@jokasimr jokasimr commented Mar 3, 2026

Fix necessary to reduce data from the beer 3D detectors. Previously the tc coord was dropped during the binning.

da.bins.coords[coord] = sc.bins_like(da, da.coords[coord])
# Making them scalar also keeps them after binning,
# but without having to store them for each event.
da.coords['tc'] = da.coords['tc'].mean()
Copy link
Member

Choose a reason for hiding this comment

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

Why can we just use the mean here? Shouldn't this be a per-cluster coord?

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.

2 participants