goreviewpartner
goreviewpartner copied to clipboard
Feature Request: power off PC after analysis over
Dears,
When I am running GRP on my laptop (no GPU, pure CPU), after a game on OGS/KGS, it takes usually around 45 min, 1 hour to get analysis done and have final RSGF created. Normally I play in the evenings, so waiting for review to be generated makes me to end ~1 am in the night etc.
Can you please add feature to allow to run analysis, and when it is completed, add option "Power Off PC"?
This way I can play in the evening and next day review my game. IT WOULD BE SO GOOD :))))
Kind regards, T.
Hi!
Turning off the computer would be out of GRP's scope (and it could require Administrator rights).
But there are workarounds available for this case. If you install python and run GRP from python source files, then the analysis can be part of a small script that turn the computer off when the analysis is down.
Example for Linux:
python2 leela_analysis.py
poweroff
The above script will ask you to select a file, then select the analysis parameters, then start the analysis with Leela. Alternatively, you can use leela_zero_analysis.py or aq_analysis.py or ray_analysis.py Once the analysis is down, the computer will turn off.
The equivalent batch file for windows would be:
C:\\windows\Python27\python.exe leelazero_analysis.py
shutdown.exe /s /t 00
Save it as a *.bat file and run it with double click.
Check out in the documentation:
- how to install and run GRP using python: http://yuntingdian.com/goreviewpartner/grp-documentation/doc.htm#running-from-the-sources
- the features available from command line: http://yuntingdian.com/goreviewpartner/grp-documentation/doc.htm#advanced-uses
Hey, I have an error > ERROR: The config.ini file SlowCommand entry for LeelaZero is empty!
Indeed, in config.ini parameter is empty
D:\goreviewpartner-master>py leela_zero_analysis.py moon2018.sgf GRP path: D:\goreviewpartner-master Config file: D:\goreviewpartner-master\config.ini Checking availability of config file Reading language setting from config file lang=en Could not import the WX GUI library, please double check it is installed: Avoiding wx => No problem, falling back to tkFileDialog Variation: 1 Moves for this variation: 35 Range: all Color: both Komi: 0.0 Profil: slow Adding new popup Totally 1 popups File to analyse: moon2018.sgf Output file: moon2018.rsgf keeping only variation 0 size of the tree: 19 Setting new komi Bot starting procedure started with profile = slow bot name: LeelaZero bot gtp name Leela Zero converting GRPException error message from unicode to str ERROR: The config.ini file SlowCommand entry for LeelaZero is empty! Adding new popup Totally 2 popups Batch analysis failed RunAnalysis instance has no attribute 'completed'
What is the issue?
Ok, found solution
I took bot and its exe from one of the GRP downloadble sources for Windows and copied config.ini. Works! Thank you.