comparison tests/test_interpolation.py @ 66:7dd1b18c9f78

minor cleanup and better error
author Jeff Hammel <k0scist@gmail.com>
date Sat, 28 Feb 2015 13:51:40 -0800
parents 39f428e8f2b7
children a09d5ffd2fc9
comparison
equal deleted inserted replaced
65:3f04d7ae4d69 66:7dd1b18c9f78
35 reader = csv.reader(f) 35 reader = csv.reader(f)
36 retval = [[float(col) for col in row] for row in reader] 36 retval = [[float(col) for col in row] for row in reader]
37 return retval 37 return retval
38 38
39 def test_from_csv(self): 39 def test_from_csv(self):
40 """test interpolation from a CSV file"""
40 41
41 raw_data = self.read_test_data() 42 raw_data = self.read_test_data()
42 data = [[(row[0], row[col]) for row in raw_data] 43 data = [[(row[0], row[col]) for row in raw_data]
43 for col in (1,2)] 44 for col in (1,2)]
44 for series in data: 45 for series in data: