mirror of
https://github.com/rasbt/python_reference.git
synced 2024-11-23 20:11:13 +00:00
shell cmd upd
This commit is contained in:
parent
45c931b3f9
commit
cdac474115
|
@ -21,7 +21,7 @@ chunksize = 100000 # number of lines to process at each iteration
|
||||||
columns = ['molecule_id','charge','db','drugsnow','hba','hbd','loc','nrb','smiles']
|
columns = ['molecule_id','charge','db','drugsnow','hba','hbd','loc','nrb','smiles']
|
||||||
|
|
||||||
# Get number of lines in the CSV file
|
# Get number of lines in the CSV file
|
||||||
nlines = subprocess.check_output('wc -l %s' % in_csv, shell=True)
|
nlines = subprocess.check_output(['wc', '-l', in_csv])
|
||||||
nlines = int(nlines.split()[0])
|
nlines = int(nlines.split()[0])
|
||||||
|
|
||||||
# connect to database
|
# connect to database
|
||||||
|
|
Loading…
Reference in New Issue
Block a user