Skip to content
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

Support stderrFile #219

Open
thomasahle opened this issue Jan 6, 2023 · 1 comment
Open

Support stderrFile #219

thomasahle opened this issue Jan 6, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers Priority: Medium

Comments

@thomasahle
Copy link

  • Chess Tuning Tools version: 0.9.3
  • Python version: 3.9
  • Operating System: Linux

Description

Cutechess-cli supports a json argument "stderrFile" which allows saving any errors output from the engine to a file. This is useful in debugging engines that crash during tuning.

What I Did

I tried to insert "stderrFile" in simple_tune.json like this:

    "engines": [
        {
            "command": "sunfish_lmr.py",
            "fixed_parameters": {},
            "stderrFile": "e1.err"
        },
        {
            "command": "sunfish_lmr.py",
            "fixed_parameters": {},
            "stderrFile": "e2.err"
        }
    ],

I hoped this would be transferred to the engines.json file created by tune, but it doesn't seem to be the case.

@thomasahle
Copy link
Author

I tried adding

import sys
sys.stderr = open('error.log', 'a', 0)

at the top of my engine, but it seems to mess with cutechess somehow.

@kiudee kiudee added enhancement New feature or request Priority: Medium good first issue Good for newcomers labels Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers Priority: Medium
Projects
None yet
Development

No branches or pull requests

2 participants