From d0ec52635754d8c584fe516ac4f29034ef55ac0c Mon Sep 17 00:00:00 2001 From: Pedro Jose Romero Gombau Date: Mon, 31 Mar 2025 11:48:48 +0200 Subject: [PATCH] Fix1 --- fluxcontrol.py | 2 -- genCurvas.py | 4 ++-- requirements.txt | 3 ++- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/fluxcontrol.py b/fluxcontrol.py index 1be985e..d912fbe 100644 --- a/fluxcontrol.py +++ b/fluxcontrol.py @@ -24,8 +24,6 @@ if __name__ == '__main__': while flag == False: - os.system('cls') - gc.generar_curva(offset, archivoCurvas) for i in np.arange(len(E_obj)): diff --git a/genCurvas.py b/genCurvas.py index a6245bb..d682281 100644 --- a/genCurvas.py +++ b/genCurvas.py @@ -38,8 +38,8 @@ def generar_curva(offset, ruta): for i in np.arange(len(h)): f.write(f'BValue[{i+1}]={b[i]}\n') f.write(f'HValue[{i+1}]={h[i]}\n') - - + + print("Curva generada correctamente en: ", ruta) def logica_offset(offset, error, errorObjetivo): ''' diff --git a/requirements.txt b/requirements.txt index 15875bb..62733e0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ numpy pandas openpyxl -ansys.motorcad.core \ No newline at end of file +ansys.motorcad.core +matplotlib \ No newline at end of file