Skip to content

Adjustments for PWGHF embedding benchmark#3

Merged
sawenzel merged 1 commit intoAliceO2Group:masterfrom
sawenzel:swenzel/patch
Nov 6, 2020
Merged

Adjustments for PWGHF embedding benchmark#3
sawenzel merged 1 commit intoAliceO2Group:masterfrom
sawenzel:swenzel/patch

Conversation

@sawenzel
Copy link
Copy Markdown
Contributor

@sawenzel sawenzel commented Nov 6, 2020

SHMSIZE adjustment (learning from first GRID exercise)

SHMSIZE adjustment (learning from first GRID exercise)
@sawenzel sawenzel merged commit c582705 into AliceO2Group:master Nov 6, 2020
@sawenzel sawenzel deleted the swenzel/patch branch November 6, 2020 12:51
miranov25 pushed a commit to miranov25/O2DPG that referenced this pull request Dec 12, 2025
New features:
- get_required_branches() public method for branch detection
- AST-based selection string parsing (_parse_selection_columns)
- Alias chain resolution to base branches (_resolve_to_base_branches)
- Regex fallback for unparseable expressions
- validate=True filters to existing branches (lazy & eager modes)

Design decisions (unanimous reviewer approval):
- (a) AST parsing for accuracy with physics expressions
- (b) Filter function names from results (np, sqrt, abs, etc.)
- (a) Raise error on circular aliases
- (a) Public API for user debugging

GPT tweaks implemented:
- #1: Get ALL columns from expr, not just aliases
- AliceO2Group#2: Shared _visited set with add/remove pattern
- AliceO2Group#3: validate works in both lazy AND eager modes
- AliceO2Group#4: Helper methods kept private

Tests: 51 new tests, 1014 total passing
miranov25 pushed a commit to miranov25/O2DPG that referenced this pull request Apr 2, 2026
- weights='(1+mP4**2)' was silently treated as unweighted
- Root cause: 'weights in df.columns' fails for expressions
- Fix: _eval_weights() — column name, then df.eval(), then ValueError
- Hard Constraint AliceO2Group#3 (Safety) violated: silent wrong results
- 5 new tests in TestWeightExpressions, 21/21 passing
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