Add read_bagg to pygambit game I/O API#933
Merged
Merged
Conversation
Copilot created this pull request from a session on behalf of
rahulsavani
June 6, 2026 08:00
View session
tturocy
approved these changes
Jun 6, 2026
rahulsavani
approved these changes
Jun 6, 2026
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.
Thanks for contributing to Gambit! Before you submitting or reviewing a pull request, check out our guidelines for contributing.
The person submitting the PR should ensure it has an informative title and update the headers below, before marking the PR as ready for review and assigning reviewers.
Issues closed by this PR
Issue linking is handled automatically by the system.
Description of the changes in this PR
pygambitexposedread_aggbut not a corresponding BAGG reader, so BAGG files could not be loaded through the Python game I/O API. This change adds first-class BAGG read support viaread_bagg.This PR ...
Python API surface
read_bagg(filepath_or_buffer, normalize_labels=False)to the game I/O API, parallel toread_efg/read_nfg/read_agg.Cython/C++ parser wiring
ParseBaggGamein the wrapper layer and wires it throughgambit.pxdsoread_baggresolves toReadBaggFile.API docs
read_baggto thepygambitAPI autosummary list.I/O coverage
How to review this PR
read_baggis exposed in the same layer as existing file readers (read_efg,read_nfg,read_agg).ReadBaggFile.read_bagg.