Skip to content

Commit

Permalink
Debugging CI segfault in test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
tturocy committed May 23, 2024
1 parent 5fbaa58 commit 0646f9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions src/pygambit/nash.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ List<MixedBehaviorProfile<double>> LogitBehaviorSolveWrapper(const Game &p_game,
double p_firstStep, double p_maxAccel)
{
List<MixedBehaviorProfile<double>> ret;
ret.push_back(LogitBehaviorSolve(LogitQREMixedBehaviorProfile(p_game), p_regret, 1.0,
p_firstStep, p_maxAccel)
.back()
.GetProfile());
auto soln = LogitBehaviorSolve(LogitQREMixedBehaviorProfile(p_game), p_regret, 1.0, p_firstStep,
p_maxAccel);
std::cout << soln.size() << std::endl;
if (!soln.empty()) {
ret.push_back(soln.back().GetProfile());
}
return ret;
}

Expand Down
6 changes: 3 additions & 3 deletions tests/test_nash.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ def test_logit_strategy(self):

def test_logit_behavior(self):
"""Test calls of logit for mixed behavior equilibria."""
# result = gbt.nash.logit_solve(self.poker, use_strategic=False)
# assert len(result.equilibria) == 1
gbt.nash.logit_behavior_atlambda(self.poker, 1.0)
result = gbt.nash.logit_solve(self.poker, use_strategic=False)
assert len(result.equilibria) == 1
# gbt.nash.logit_behavior_atlambda(self.poker, 1.0)


# def test_logit_zerochance():
Expand Down

0 comments on commit 0646f9e

Please sign in to comment.