Source code :: preved

[Return]
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
with open('Nidata_raw.lvm') as fin, open('Nidata.lvm', 'w') as fout:
	line_no = 0.0
	lines = '\n'.join([line.strip() for line in fin.readlines() if line.strip() != ''] )
	for line in lines.splitlines():
		fout.write("%f\t%s\n" % (line_no/10000.0, line.strip()))
		line_no += 1
		
from pygolem_lite.modules import load_adv

load_adv('Nidata')

Navigation