Skip to content

Commit 0bdc14e

Browse files
committed
DOC: Revise Examples in game_converters.py
1 parent 4d9f331 commit 0bdc14e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

quantecon/game_theory/game_converters.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
Create a QuantEcon NormalFormGame from a gam file storing
88
a 3-player Minimum Effort Game
99
10-
>>> filepath = "./tests/gam_files/minimum_effort_game.gam"
11-
>>> nfg = qe_nfg_from_gam_file(filepath)
10+
>>> import os
11+
>>> import quantecon.game_theory as gt
12+
>>> filepath = os.path.dirname(gt.__file__)
13+
>>> filepath += "/tests/game_files/minimum_effort_game.gam"
14+
>>> nfg = gt.qe_nfg_from_gam_file(filepath)
1215
>>> print(nfg)
1316
3-player NormalFormGame with payoff profile array:
1417
[[[[ 1., 1., 1.], [ 1., 1., -9.], [ 1., 1., -19.]],

0 commit comments

Comments
 (0)