Skip to content

Commit ccbc9f1

Browse files
committed
tune
1 parent d607487 commit ccbc9f1

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎.github/workflows/games.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,10 @@ jobs:
152152
runs-on: ubuntu-latest
153153

154154
steps:
155-
- uses: actions/download-artifact@v4
156-
157155
- uses: actions/checkout@v6
158156
with:
159157
persist-credentials: false
158+
- uses: actions/download-artifact@v4
160159

161160
- name: Run Ordo
162161
run: |

‎spsa.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ def run_fastchess_match(plus_params, minus_params, args, iteration):
254254
logger.error("Could not read fastchess output config.")
255255
return 0.5, 0.5
256256
stats = output_config.get("stats", {})
257-
258-
if "Plus vs Minus" in stats and "wins" in stats["Plus vs Minus"]:
257+
stats_key="Plus vs Minus"
258+
if stats_key in stats and "wins" in stats[stats_key]:
259259
w = stats[stats_key]["wins"]
260260
l = stats[stats_key]["losses"]
261261
d = stats[stats_key]["draws"]

0 commit comments

Comments
 (0)