Skip to content

Unify networkparser, structs, and rulemod error handling#95

Merged
jrfaeder merged 1 commit into
RuleWorld:mainfrom
wshlavacek:networkparser-structs-rulemod-errors
May 12, 2026
Merged

Unify networkparser, structs, and rulemod error handling#95
jrfaeder merged 1 commit into
RuleWorld:mainfrom
wshlavacek:networkparser-structs-rulemod-errors

Conversation

@wshlavacek
Copy link
Copy Markdown
Contributor

Summary

  • Replace debug and print-on-invalid-input paths in networkparser, structs, and rulemod with parse errors.
  • Add focused regression coverage for malformed species lines, line_label fallback behavior, and invalid rule/rulemod contracts.

Testing

  • uv run python -m pytest -q tests/test_networkparser_structs_errors.py tests/test_bng_parsing.py tests/test_get_rule_mod.py
  • uvx black --check bionetgen/network/networkparser.py bionetgen/modelapi/structs.py bionetgen/network/structs.py bionetgen/modelapi/rulemod.py tests/test_networkparser_structs_errors.py

@jrfaeder jrfaeder merged commit d08e69a into RuleWorld:main May 12, 2026
17 checks passed
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