From: GĂ©rald NICOLAS Date: Thu, 26 Jan 2023 16:09:49 +0000 (+0100) Subject: python X-Git-Tag: V9_12_0a1~16^2~32^2~37 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=973399f48a0228ddd33cbd6e2575e8dfaf5d1ff9;p=modules%2Fshaper.git python --- 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