-
Notifications
You must be signed in to change notification settings - Fork 4
🐛 fix(unxt): parsing multi-word dimension names #554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 fix(unxt): parsing multi-word dimension names #554
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this 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 backports a bug fix from #551 that enables parsing multi-word dimension names in mathematical expressions. The implementation adds preprocessing to convert parenthesized dimension names to temporary identifiers before AST parsing, then maps them back during evaluation.
Changes:
- Added preprocessing function to handle parenthesized dimension names with spaces (e.g., "(amount of substance)")
- Fixed bug preventing negative exponents in dimension expressions (e.g., "length**-1")
- Expanded documentation with comprehensive examples covering various use cases
c05569b to
4ef9a36
Compare
Signed-off-by: nstarman <[email protected]>
4ef9a36 to
056ac80
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
|
@meeseeksdev backport onto versions/v1.8.x |
|
@meeseeksdev backport onto versions/v1.8.x |
|
Something went wrong ... Please have a look at my logs. It seems that the branch you are trying to backport to does not exist. |
Manual backport a bugfix from #551