Skip to content

Commit

Permalink
Mejorado impresion de frecuencia cardiaca con formato de 2 decimales
Browse files Browse the repository at this point in the history
  • Loading branch information
cybercatnet committed Jul 20, 2019
1 parent 1f0d697 commit f53e365
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 4 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
Muestras de FECG
filename = "fetal/1001.dat"
filename1 = "fetal/ARR_01.dat"
filename1 = "fetal/NR_01.dat" # OK
filename = "fetal/ARR_01.dat"
filename = "fetal/NR_01.dat" # OK
filename = "fetal/ARR_08.dat" # OK
filename = "fetal/ARR_05.dat" # Muchos P
filename = "fetal/ARR_03.dat" # Falta P
filename = "fetal/NR_03.dat" # Maso
'''
filename = "fetal/NR_04.dat"
'''
filename = "arritmia/100.dat"

tiempo_limite = 30

Expand Down
3 changes: 1 addition & 2 deletions tools/Visualizador.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ def print_qualify_cardiac_freq(self):
self.printer("Pulso Normal")

def print_cardiac_frequency(self):
self.printer("Frecuencia Cardíaca: " +
str(self.ecg._cardiac_frequency * 60) + " ppm")
self.printer("Frecuencia Cardíaca: " + '{:2.2f}'.format(self.ecg._cardiac_frequency * 60) + " ppm")

def printer(self, text):
largo = (len(text))
Expand Down

0 comments on commit f53e365

Please sign in to comment.