Skip to content

Unify networkparser, structs, and rulemod error handling#95

Open
wshlavacek wants to merge 1 commit into
RuleWorld:mainfrom
wshlavacek:networkparser-structs-rulemod-errors
Open

Unify networkparser, structs, and rulemod error handling#95
wshlavacek wants to merge 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

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