This commit is contained in:
alicja.m.musial 2020-04-03 20:04:06 +02:00
parent 02de0da2af
commit f95c13900e

View File

@ -4,7 +4,7 @@ import numpy as np
def readFile(file): def readFile(file):
with open(file, 'r') as inFile: with open(file, 'r') as inFile:
countL = 0 countL = 0
for line in open(thefilepath).xreadlines( ): countL += 1 for line in open(file).xreadlines( ): countL += 1
y2 = np.genfromtxt(file) y2 = np.genfromtxt(file)
return countL, y2 return countL, y2