mirror of
https://github.com/rasbt/python_reference.git
synced 2025-04-18 10:47:36 +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…
x
Reference in New Issue
Block a user