]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Minor corrections
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Sun, 11 Apr 2021 11:39:36 +0000 (13:39 +0200)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Sun, 11 Apr 2021 11:39:36 +0000 (13:39 +0200)
src/daComposant/daAlgorithms/Blue.py
src/daComposant/daAlgorithms/ExtendedBlue.py

index c6284daf591cc507a84cc40afb9f84bd2f91db06..df1dc90af9fb6be93bb27b4cb056fc62716f6776 100644 (file)
@@ -223,16 +223,16 @@ class ElementaryAlgorithm(BasicObjects.Algorithm):
                     dXr = numpy.matrix(numpy.random.multivariate_normal(Xa.A1,A) - Xa.A1).T
                     dYr = numpy.matrix(numpy.ravel( Hm * dXr )).T
                     Yr = HXa + dYr
-                    if selfA._toStore("SampledStateForQuantiles"): Xr = Xa+dXr
+                    if self._toStore("SampledStateForQuantiles"): Xr = Xa+dXr
                 elif self._parameters["SimulationForQuantiles"] == "NonLinear":
                     Xr = numpy.matrix(numpy.random.multivariate_normal(Xa.A1,A)).T
                     Yr = numpy.matrix(numpy.ravel( Hm * Xr )).T
                 if YfQ is None:
                     YfQ = Yr
-                    if selfA._toStore("SampledStateForQuantiles"): EXr = numpy.ravel(Xr)
+                    if self._toStore("SampledStateForQuantiles"): EXr = numpy.ravel(Xr)
                 else:
                     YfQ = numpy.hstack((YfQ,Yr))
-                    if selfA._toStore("SampledStateForQuantiles"): EXr = numpy.vstack((EXr,numpy.ravel(Xr)))
+                    if self._toStore("SampledStateForQuantiles"): EXr = numpy.vstack((EXr,numpy.ravel(Xr)))
             YfQ.sort(axis=-1)
             YQ = None
             for quantile in self._parameters["Quantiles"]:
@@ -241,8 +241,8 @@ class ElementaryAlgorithm(BasicObjects.Algorithm):
                 if YQ is None: YQ = YfQ[:,indice]
                 else:          YQ = numpy.hstack((YQ,YfQ[:,indice]))
             self.StoredVariables["SimulationQuantiles"].store( YQ )
-            if selfA._toStore("SampledStateForQuantiles"):
-                selfA.StoredVariables["SampledStateForQuantiles"].store( EXr.T )
+            if self._toStore("SampledStateForQuantiles"):
+                self.StoredVariables["SampledStateForQuantiles"].store( EXr.T )
         if self._toStore("SimulatedObservationAtBackground"):
             self.StoredVariables["SimulatedObservationAtBackground"].store( numpy.ravel(HXb) )
         if self._toStore("SimulatedObservationAtCurrentState"):
index c0f9892605483d73eb679c426fa151a12b7c258f..d526d7f781ef039668dedaf09111cc0b6d3d39bf 100644 (file)
@@ -226,16 +226,16 @@ class ElementaryAlgorithm(BasicObjects.Algorithm):
                     dXr = numpy.matrix(numpy.random.multivariate_normal(Xa.A1,A) - Xa.A1).T
                     dYr = numpy.matrix(numpy.ravel( HtM * dXr )).T
                     Yr = HXa + dYr
-                    if selfA._toStore("SampledStateForQuantiles"): Xr = Xa+dXr
+                    if self._toStore("SampledStateForQuantiles"): Xr = Xa+dXr
                 elif self._parameters["SimulationForQuantiles"] == "NonLinear":
                     Xr = numpy.matrix(numpy.random.multivariate_normal(Xa.A1,A)).T
                     Yr = numpy.matrix(numpy.ravel( H( Xr ) )).T
                 if YfQ is None:
                     YfQ = Yr
-                    if selfA._toStore("SampledStateForQuantiles"): EXr = numpy.ravel(Xr)
+                    if self._toStore("SampledStateForQuantiles"): EXr = numpy.ravel(Xr)
                 else:
                     YfQ = numpy.hstack((YfQ,Yr))
-                    if selfA._toStore("SampledStateForQuantiles"): EXr = numpy.vstack((EXr,numpy.ravel(Xr)))
+                    if self._toStore("SampledStateForQuantiles"): EXr = numpy.vstack((EXr,numpy.ravel(Xr)))
             YfQ.sort(axis=-1)
             YQ = None
             for quantile in self._parameters["Quantiles"]:
@@ -244,8 +244,8 @@ class ElementaryAlgorithm(BasicObjects.Algorithm):
                 if YQ is None: YQ = YfQ[:,indice]
                 else:          YQ = numpy.hstack((YQ,YfQ[:,indice]))
             self.StoredVariables["SimulationQuantiles"].store( YQ )
-            if selfA._toStore("SampledStateForQuantiles"):
-                selfA.StoredVariables["SampledStateForQuantiles"].store( EXr.T )
+            if self._toStore("SampledStateForQuantiles"):
+                self.StoredVariables["SampledStateForQuantiles"].store( EXr.T )
         if self._toStore("SimulatedObservationAtBackground"):
             self.StoredVariables["SimulatedObservationAtBackground"].store( numpy.ravel(HXb) )
         if self._toStore("SimulatedObservationAtCurrentState"):