Skip to content

attempting to fix docutils version issue with sphinx #1403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
run: |
python -m pip install sphinx
python -m pip install sphinx_rtd_theme
python -m pip install docutils==0.12
python -m pip install mock
cd docs; make clean; make html; cd ..;
- name: Run tests
Expand Down
4 changes: 2 additions & 2 deletions axelrod/strategies/axelrod_second.py
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@ def strategy(self, opponent: Player) -> Action:
recent_history = opponent.history[-5:]

did_d = np.vectorize(lambda action: int(action == D))
number_defects = np.sum(did_d(recent_history))
number_defects = sum(did_d(recent_history))

return self._random.random_choice(self.prob_coop[number_defects])

Expand Down Expand Up @@ -1774,7 +1774,7 @@ def strategy(self, opponent: Player) -> Action:
return C

proportion_agree = self.num_agreements / turn
last_four_num = np.sum(self.last_four_agreements)
last_four_num = sum(self.last_four_agreements)
if proportion_agree > 0.9 and last_four_num >= 4:
return C
elif proportion_agree >= 0.625 and last_four_num >= 2:
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ cloudpickle>=0.2.2
fsspec>=0.6.0
toolz>=0.8.2

docutils <= 0.17 # Added this for a problem with sphinx https://github.com/sphinx-doc/sphinx/commit/13803a79e7179f40a27f46d5a5a05f1eebbcbb63
dask>=2.9.2
hypothesis==5.19.3
matplotlib>=3.0.3
Expand Down