Skip to content

Commit 43c1279

Browse files
authored
RFC: Refactor game_converters.py (#826)
* ENH: Add `GAMPayoffVector` * RFC: Refactor `GAMWriter._dump` - Use `io.StringIO()` - Fine tune `np.array2string` - Add tests for `to_gam` * RFC: Refactor `GAMReader._parse` Also add `from_gam_string` and `from_gam_url` * TEST: Add tests in test_game_converters.py * DOC: Edit docstring in game_converters.py * Remove `random_game` * Remove backticks
1 parent c6c82e0 commit 43c1279

3 files changed

Lines changed: 449 additions & 120 deletions

File tree

quantecon/game_theory/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,6 @@
2424
from .logitdyn import LogitDynamics
2525
from .polymatrix_game import PolymatrixGame
2626
from .howson_lcp import polym_lcp_solver
27-
from .game_converters import GAMReader, GAMWriter, from_gam, to_gam
27+
from .game_converters import (
28+
GAMReader, GAMWriter, from_gam, from_gam_string, from_gam_url, to_gam
29+
)

0 commit comments

Comments
 (0)