[c49071]: / Scripts / M1 / Pre-Batch_run.py

Download this file

20 lines (17 with data), 504 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#-*- coding:utf-8 -*-
#########################
# filename: run.py
#########################
import subprocess
cmds = [
'python Pre_runner.py --Model ".../Output_files/training.model.h5" --SNP ".../Input_files/wheat599_pc95.pkl" --output .../Output_files/'
]
for cmd in cmds:
p = subprocess.Popen(
cmd, shell=True, stdout=subprocess.PIPE
)
str=p.stdout.read()
try:
print(str.decode('utf-8'))
except Exception:
print(str.decode('gbk'))