Skip to content

Conversation

@GernotMaier
Copy link
Member

No description provided.

@GernotMaier GernotMaier requested a review from Copilot January 26, 2026 11:18
@GernotMaier GernotMaier self-assigned this Jan 26, 2026
@GernotMaier GernotMaier marked this pull request as ready for review January 26, 2026 11:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug in the calculation of the size_dist2 feature. Previously, the feature was incorrectly calculated as width / length instead of size / dist^2, which is what the feature name suggests.

Changes:

  • Added correct calculation of size_dist2_{i} as size / (dist^2 + 1e-6) in a new conditional block
  • Removed the incorrect size_dist2_{i} calculation from the width/length conditional block
  • Added changelog entry documenting the bug fix

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/eventdisplay_ml/data_processing.py Fixes the size_dist2_{i} feature calculation by adding the correct formula in its own conditional block and removing the incorrect calculation from the width/length block
docs/changes/41.bugfix.md Documents the bug fix in the changelog

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@GernotMaier GernotMaier merged commit 8a1c5db into main Jan 26, 2026
2 checks passed
@GernotMaier GernotMaier deleted the size-dist2 branch January 26, 2026 11:24
Copilot AI mentioned this pull request Jan 29, 2026
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