]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Correcting string comparison
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Tue, 12 Feb 2013 19:27:09 +0000 (20:27 +0100)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Tue, 12 Feb 2013 19:27:09 +0000 (20:27 +0100)
src/daComposant/daAlgorithms/3DVAR.py

index 9b638493b6ff1cea5c8f8c79f6a4d1fbaa760783..d2ecc6ff477b8d2eaaf4ef134e0662058d651da9 100644 (file)
@@ -102,7 +102,7 @@ class ElementaryAlgorithm(BasicObjects.Algorithm):
             Bounds = None
         #
         # Correction pour pallier a un bug de TNC sur le retour du Minimum
-        if self._parameters.has_key("Minimizer") is "TNC":
+        if self._parameters.has_key("Minimizer") == "TNC":
             self.setParameterValue("StoreInternalVariables",True)
         #
         # Opérateur d'observation