From 973399f48a0228ddd33cbd6e2575e8dfaf5d1ff9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=A9rald=20NICOLAS?= Date: Thu, 26 Jan 2023 17:09:49 +0100 Subject: [PATCH] python --- src/PythonAddons/macros/midSurface/feature.py | 6 +++--- src/PythonAddons/macros/midSurface/surfaceMediane.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PythonAddons/macros/midSurface/feature.py b/src/PythonAddons/macros/midSurface/feature.py index 44f5bcbfe..fd2027f48 100755 --- a/src/PythonAddons/macros/midSurface/feature.py +++ b/src/PythonAddons/macros/midSurface/feature.py @@ -91,11 +91,11 @@ class midSurface(model.Feature): print("l_options : '{}'".format(l_options)) s_med = SurfaceMediane(l_options) with open("/tmp/grr_1", "w") as fic : - fic.write("{}".format(dir(s_med))) - fic.write("\n{}".format(filepath)) + fic.write("{}\n".format(dir(s_med))) + fic.write("\nFichier : {}".format(filepath)) erreur, message = s_med.surf_fic_cao (filepath) with open("/tmp/grr_2", "w") as fic : - fic.write("erreur = {}, message = '{}'".format(erreur, message)) + fic.write("erreur = {}, message = '{}'".format(erreur, message)) del s_med if erreur: self.setError(message) diff --git a/src/PythonAddons/macros/midSurface/surfaceMediane.py b/src/PythonAddons/macros/midSurface/surfaceMediane.py index 67c233d20..8949c093d 100755 --- a/src/PythonAddons/macros/midSurface/surfaceMediane.py +++ b/src/PythonAddons/macros/midSurface/surfaceMediane.py @@ -788,7 +788,7 @@ Sorties : # 2. Traitement selon la forme de la face # 2.1. Face plane - if forme in ( geompy.kind.DISK_CIRCLE, geompy.kind.DISK_ELLIPSE, geompy.kind.POLYGON, geompy.kind.PLANE, geompy.kind.PLANAR): + if forme in ( geompy.kind.DISK_CIRCLE, geompy.kind.DISK_ELLIPSE, geompy.kind.POLYGON, geompy.kind.PLANE, geompy.kind.PLANAR ): erreur, face = self._cree_face_mediane_plane ( geompy, solide, caract_face_1, caract_face_2, n_recur ) # 2.2. Face cylindrique -- 2.39.2