From 8db8fc6e10173d31d1438c14c63502424b2c6f46 Mon Sep 17 00:00:00 2001 From: GERALD NICOLAS Date: Wed, 15 Sep 2021 13:33:10 +0200 Subject: [PATCH] Commentaires --- src/PythonAddons/Test/TestpipeNetwork_2par2.py | 9 ++++----- src/PythonAddons/Test/TestpipeNetwork_parligne.py | 5 ++--- src/PythonAddons/macros/pipeNetwork/feature.py | 4 ++-- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/PythonAddons/Test/TestpipeNetwork_2par2.py b/src/PythonAddons/Test/TestpipeNetwork_2par2.py index 90a82cc04..40fad6c33 100755 --- a/src/PythonAddons/Test/TestpipeNetwork_2par2.py +++ b/src/PythonAddons/Test/TestpipeNetwork_2par2.py @@ -16,9 +16,9 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -"""Test de la création du réseau de tuyaux""" +"""Test de la création du réseau de tuyaux - Description des lignes par paquets de 2 noeuds""" -__revision__ = "V01.03" +__revision__ = "V02.01" import os @@ -31,8 +31,7 @@ def getFilePath(fileName): path = os.path.join(os.getenv("SHAPER_ROOT_DIR"), "bin", "salome", "macros", "pipeNetwork") return os.path.join(path, fileName) -#theFile = getFilePath("pipeNetwork_2par2.txt") -theFile = getFilePath("pipeNetwork_ligne.txt") +theFile = getFilePath("pipeNetwork_2par2.txt") aSession.startOperation("Create part for pipe network") aPartFeature = aSession.moduleDocument().addFeature("Part") @@ -47,6 +46,6 @@ aFile = anImportFeature.string(aFieldName) aFile.setValue(theFile) aSession.finishOperation() -assert(aPart.size("Construction") == 46), "Right number of construction: {}".format(aPart.size("Construction")) +assert(aPart.size("Construction") == 42), "Right number of construction: {}".format(aPart.size("Construction")) assert(aPart.size("Folders") == 1), "Right number of folders: {}".format(aPart.size("Folders")) diff --git a/src/PythonAddons/Test/TestpipeNetwork_parligne.py b/src/PythonAddons/Test/TestpipeNetwork_parligne.py index 90a82cc04..f0f0d46ca 100755 --- a/src/PythonAddons/Test/TestpipeNetwork_parligne.py +++ b/src/PythonAddons/Test/TestpipeNetwork_parligne.py @@ -16,9 +16,9 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -"""Test de la création du réseau de tuyaux""" +"""Test de la création du réseau de tuyaux - Description par ligne entière""" -__revision__ = "V01.03" +__revision__ = "V01.04" import os @@ -31,7 +31,6 @@ def getFilePath(fileName): path = os.path.join(os.getenv("SHAPER_ROOT_DIR"), "bin", "salome", "macros", "pipeNetwork") return os.path.join(path, fileName) -#theFile = getFilePath("pipeNetwork_2par2.txt") theFile = getFilePath("pipeNetwork_ligne.txt") aSession.startOperation("Create part for pipe network") diff --git a/src/PythonAddons/macros/pipeNetwork/feature.py b/src/PythonAddons/macros/pipeNetwork/feature.py index 5f9584030..f1bcf0b2a 100755 --- a/src/PythonAddons/macros/pipeNetwork/feature.py +++ b/src/PythonAddons/macros/pipeNetwork/feature.py @@ -23,7 +23,7 @@ Author: Nathalie GORE - Gérald NICOLAS Remarque : la fonction de partitionnement pour un futur maillage en hexa est désactivée. """ -__revision__ = "V02.15" +__revision__ = "V02.16" from salome.shaper import model import ModelAPI @@ -59,7 +59,7 @@ class pipeNetwork(model.Feature): infoPoints = dict() connectivities = dict() - _verbose = True + _verbose = False _verbose_max = False # Feature initializations -- 2.39.2