I'm now programming ecg signal with python and i have this error i dont know how i can solve it.
ValueError: could not convert string to float: '-0,274697\n'

I'm now programming ecg signal with python and i have this error i dont know how i can solve it.
ValueError: could not convert string to float: '-0,274697\n'

Okay, so you are trying to convert a string with a , to a floating point number. 
In Python, you can't have a comma in your number, only a . is supported. To convert it, you can use these lines
 datei= open(dateiname,'r')
 dateistr = datei.readline().replace(',','.') #replacing comma with .
 dateistr = dateistr.replace('#','') # replacing # with blank
 dateistr = dateistr.strip('\n') #remove the new line character at the end
 return float(dateistr)