Collapse repeated commas in action normalization - #90
Merged
jrfaeder merged 1 commit intoMay 12, 2026
Conversation
Contributor
|
@wshlavacek : This branch has conflicts. Please resolve them and let me know when it's ready to go. |
Contributor
Author
|
@jrfaeder conflicts resolved and the branch has been rebased onto current main. It should be ready for another look. |
wshlavacek
force-pushed
the
modelapi-b4-collapse-double-commas
branch
from
May 12, 2026 17:08
1642d9e to
8f505e9
Compare
jrfaeder
pushed a commit
that referenced
this pull request
Jul 20, 2026
…er (#90) * Address FIXME for tracking boundary species Replaced an old FIXME in `bionetgen/atomizer/sbml2bngl.py` with the correct handling logic. Boundary species that are not natively constant are now explicitly flagged as `isConstant = True` to ensure they receive the `$` prefix in the generated BNGL, allowing downstream logic (like `getAssignmentRules`) to accurately track and substitute their references via `only_assignment_dict`. Added a comment to clarify the downstream tracking mechanism. Co-authored-by: akutuva21 <44119804+akutuva21@users.noreply.github.com> * chore: PR #90 remove forbidden artifacts and run black * chore: remove generated artifact files from PR #90 --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
_normalize_action_text()to collapse repeated commas that appear outside quoted stringstests/test_bng_parsing.pyWhy
BNG2.pl tolerates malformed action text like
n_steps=>20,,print_functions=>1, but the pyparsing action parser does not.Testing
uv run python -m pytest -q tests/test_bng_parsing.pyuvx black --check bionetgen/modelapi/bngparser.py tests/test_bng_parsing.py