Skip to content

use bracket counting - #62

Merged
DanPorter merged 1 commit into
masterfrom
61-mmg_toolbox-tests-fail-for-evaluation
Aug 24, 2026
Merged

use bracket counting#62
DanPorter merged 1 commit into
masterfrom
61-mmg_toolbox-tests-fail-for-evaluation

Conversation

@DanPorter

@DanPorter DanPorter commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Replace method of evaluating expressions with (a|b)

eval_functions.py

  • remove regex for OR expressions (a|b) as this was causing issues with brakets.
  • replace with a new function find_or_expressions() that returns unique inner expression
  • update replace_expression_vars() and prepare_expression() to use this new function.
  • add additional tests to check this fix.
  • Fix for mmg_toolbox tests fail for evaluation #61

All tests pass.

## eval_functions.py
 - remove regex for OR expressions (a|b) as this was causing issues with brakets.
 - replace with a new function *find_or_expressions()* that returns unique inner expression
 - update *replace_expression_vars()* and *prepare_expression()* to use this new function.
 - add additional tests to check this fix.
 - Fix for #61

All tests pass.
@DanPorter DanPorter linked an issue Aug 24, 2026 that may be closed by this pull request
@DanPorter
DanPorter merged commit 5cb4dd0 into master Aug 24, 2026
10 checks passed
@DanPorter
DanPorter deleted the 61-mmg_toolbox-tests-fail-for-evaluation branch August 24, 2026 17:24
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.

mmg_toolbox tests fail for evaluation

1 participant