]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Working again
authorNATHALIE GORE <ng13417n@dsp0940623.atlas.edf.fr>
Tue, 22 Jun 2021 13:12:01 +0000 (15:12 +0200)
committerNATHALIE GORE <ng13417n@dsp0940623.atlas.edf.fr>
Tue, 22 Jun 2021 13:12:01 +0000 (15:12 +0200)
src/PythonAddons/macros/pipeNetwork/feature.py

index a1fd2ee4b69d9ff6945b7937e39fd6970cba85cc..c2e872c77c3142f526d4b7fa3ffc9463a482caca 100755 (executable)
@@ -25,9 +25,7 @@ Author: Nathalie Gore
 __revision__ = "V02.02"
 
 from salome.shaper import model
-
 import ModelAPI
-
 from GeomAPI import *
 
 class pipeNetwork(model.Feature):
@@ -123,7 +121,7 @@ class pipeNetwork(model.Feature):
         print(line)
         diagno = 0
         if method == self.twopartwo :
-            if isinstance(self.connectivities,dict) :
+            if self.connectivities == {} :
                 print("nouvelle ligne - Cas 1")
                 self.newConnectivity(splitLine[0], splitLine)
             else :