
def read_in():
    import csv
    import numpy
     """
     Opens the ecg CSV file
     :param readCSV: pointer to the file
     :param times: the time from the signal
     :param Voltage: the voltage from the signal
     """
    # with open('ecg_data.csv') as csvfile:         
    #
    #     read_csv = csv.reader(csvfile, delimiter=',')
    #     header_line = next(read_csv)
    #
    #     time = numpy.array([])
    #     voltage = numpy.array([])
    #
    #
    #     for row in read_csv:
    #         time1 = row[0]
    #         voltage1 = row[1]
    #
    #         # time = numpy.append(time, time1)
    #         # voltage = numpy.append(voltage, voltage1)
    dat = numpy.genfromtxt('ecg_data.csv', delimiter=',', skip_header=1, )
    time = dat[:, 0]
    voltage = dat[:, 1]
    # for element in time:
    #     #parts=element.split(',')
    # time = tim.astype('Float64')
    # time.astype()
    #
    # #for element in voltage:
    #     #parts1=element.split(',')
    # voltage = voltage.astyoe('Float64')    
    return time, voltage

@@ -41,25 +41,24 @@
 t numpy%0A    
- 
 %22%22%22%0A     Ope
@@ -267,23 +267,8 @@
 ile:
-         %0A    #
 %0A   
@@ -991,17 +991,17 @@
 age.asty
-o
+p
 e('Float

Update Input_csv_file.py