1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-06-06 05:51:17 +08:00

Add collect_info script

This commit is contained in:
Jactus
2020-09-28 14:40:12 +08:00
committed by you-n-g
parent e3eb965f5c
commit c0b0920d73
2 changed files with 27 additions and 1 deletions

View File

@@ -28,7 +28,9 @@ Steps to reproduce the behavior:
## Environment
- Qlib version (use the command: `print(qlib.__version__)`):
**Note**: One could run `python scripts/collect_info.py` under the `qlib` directory to get the following information.
- Qlib version:
- Python version:
- OS (`Windows`, `Linux`, `MacOS`):
- Commit number (optional, please provide it if you are using the dev version):

24
scripts/collect_info.py Normal file
View File

@@ -0,0 +1,24 @@
import sys, platform
import qlib
def linux_distribution():
try:
return platform.linux_distribution()
except:
return "N/A"
print('Qlib version: {} \n'.format(qlib.__version__))
print("""Python version: {} \n
linux_distribution: {}
system: {}
machine: {}
platform: {}
version: {}
""".format(
sys.version.split('\n'),
linux_distribution(),
platform.system(),
platform.machine(),
platform.platform(),
platform.version(),
))