[openturns] 03/04: Also fix Python tests about RandomMixture

Denis Barbier barbier-guest at moszumanska.debian.org
Sun May 24 15:15:38 UTC 2015


This is an automated email from the git hooks/post-receive script.

barbier-guest pushed a commit to branch debian
in repository openturns.

commit 2d4ccaeb49563e1ff05ebab1f5812ed4c8a7bc10
Author: Denis Barbier <bouzim at gmail.com>
Date:   Sat May 23 13:56:42 2015 +0100

    Also fix Python tests about RandomMixture
---
 debian/patches/randommixture-x86.patch | 115 ++++++++++++++++++++++++++++++++-
 1 file changed, 114 insertions(+), 1 deletion(-)

diff --git a/debian/patches/randommixture-x86.patch b/debian/patches/randommixture-x86.patch
index 6aa2342..78e0015 100644
--- a/debian/patches/randommixture-x86.patch
+++ b/debian/patches/randommixture-x86.patch
@@ -2,7 +2,7 @@ Description: Avoid tests failures in RandomMixture on x86
 Author: Denis Barbier
 Origin: Debian
 Forwarded: No
-Last-Update: 2015-05-20
+Last-Update: 2015-05-23
 
 Index: openturns-1.5/lib/test/t_RandomMixture_grid1d.cxx
 ===================================================================
@@ -116,3 +116,116 @@ Index: openturns-1.5/lib/test/t_RandomMixture_grid3d.expout
  -2.12763;-5.03418;-1.34798;5.16744e-05
  -0.542543;-5.03418;-1.34798;0
  1.04254;-5.03418;-1.34798;0
+Index: openturns-1.5/python/test/t_RandomMixture_grid1d.expout
+===================================================================
+--- openturns-1.5.orig/python/test/t_RandomMixture_grid1d.expout
++++ openturns-1.5/python/test/t_RandomMixture_grid1d.expout
+@@ -3,8 +3,8 @@ range =  [0, 17.7224]
+ mean =  [3]
+ cov =  [[ 3 ]]
+ sigma =  [1.73205]
+-xMin =  [-3.9282]
+-xMax =  [9.9282]
++xMin =  [-3.755]
++xMax =  [9.755]
+ x;PDF;reference
+ -3.90114;0.00235265;0
+ -3.84701;0.002253;0
+Index: openturns-1.5/python/test/t_RandomMixture_grid1d.py
+===================================================================
+--- openturns-1.5.orig/python/test/t_RandomMixture_grid1d.py
++++ openturns-1.5/python/test/t_RandomMixture_grid1d.py
+@@ -29,8 +29,8 @@ try:
+     points = Indices(1, N)
+     mean = distribution.getMean()
+     sigma = distribution.getStandardDeviation()
+-    xMin = mean - 4.0 * sigma
+-    xMax = mean + 4.0 * sigma
++    xMin = mean - 3.9 * sigma
++    xMax = mean + 3.9 * sigma
+     grid = NumericalSample()
+     print "distribution = ", repr(distribution)
+     print "range = ", distribution.getRange()
+Index: openturns-1.5/python/test/t_RandomMixture_grid2d.expout
+===================================================================
+--- openturns-1.5.orig/python/test/t_RandomMixture_grid2d.expout
++++ openturns-1.5/python/test/t_RandomMixture_grid2d.expout
+@@ -5,8 +5,8 @@ mean =  [0,-0.5]
+ cov =  [[  0.5      -0.333333 ]
+  [ -0.333333  0.916667 ]]
+ sigma =  [0.707107,0.957427]
+-xMin =  [-2.12132,-3.37228]
+-xMax =  [2.12132,2.37228]
++xMin =  [-2.05061,-3.27654]
++xMax =  [2.05061,2.27654]
+ -1.98874;-3.19276;0
+ -1.72357;-3.19276;0
+ -1.45841;-3.19276;0.000146538
+Index: openturns-1.5/python/test/t_RandomMixture_grid2d.py
+===================================================================
+--- openturns-1.5.orig/python/test/t_RandomMixture_grid2d.py
++++ openturns-1.5/python/test/t_RandomMixture_grid2d.py
+@@ -23,8 +23,8 @@ try:
+     points = Indices(2, N)
+     mean = dist_2D.getMean()
+     sigma = dist_2D.getStandardDeviation()
+-    xMin = mean - 3.0 * sigma
+-    xMax = mean + 3.0 * sigma
++    xMin = mean - 2.9 * sigma
++    xMax = mean + 2.9 * sigma
+     grid = NumericalSample()
+     print "distribution = ", repr(dist_2D)
+     print "range = ", dist_2D.getRange()
+@@ -48,9 +48,9 @@ try:
+     print "mean = ",  distribution2D.getMean()
+     print "cov = ", distribution2D.getCovariance()
+     print "sigma = ", distribution2D.getStandardDeviation()
+-    xMin = distribution2D.getMean() - 3.0 * \
++    xMin = distribution2D.getMean() - 2.9 * \
+         distribution2D.getStandardDeviation()
+-    xMax = distribution2D.getMean() + 3.0 * \
++    xMax = distribution2D.getMean() + 2.9 * \
+         distribution2D.getStandardDeviation()
+     result, grid = distribution2D.computePDF(xMin, xMax, points)
+     print "x;y;PDF"
+Index: openturns-1.5/python/test/t_RandomMixture_grid3d.expout
+===================================================================
+--- openturns-1.5.orig/python/test/t_RandomMixture_grid3d.expout
++++ openturns-1.5/python/test/t_RandomMixture_grid3d.expout
+@@ -81,8 +81,8 @@ cov =  [[  1.11667   0.233333 -0.341667
+  [  0.233333  5.25771  -0.775    ]
+  [ -0.341667 -0.775     0.473333 ]]
+ sigma =  [1.05672,2.29297,0.687992]
+-xMin =  [-2.92017,-6.75391,-1.86398]
+-xMax =  [3.42017,7.00391,2.26398]
++xMin =  [-2.8145,-6.52461,-1.79518]
++xMax =  [3.3145,6.77461,2.19518]
+ -2.12763;-5.03418;-1.34798;5.16744e-05
+ -0.542543;-5.03418;-1.34798;0
+ 1.04254;-5.03418;-1.34798;0
+Index: openturns-1.5/python/test/t_RandomMixture_grid3d.py
+===================================================================
+--- openturns-1.5.orig/python/test/t_RandomMixture_grid3d.py
++++ openturns-1.5/python/test/t_RandomMixture_grid3d.py
+@@ -24,8 +24,8 @@ try:
+     points = Indices(3, N)
+     mean = distribution.getMean()
+     sigma = distribution.getStandardDeviation()
+-    xMin = mean - 3.0 * sigma
+-    xMax = mean + 3.0 * sigma
++    xMin = mean - 2.9 * sigma
++    xMax = mean + 2.9 * sigma
+     grid = NumericalSample()
+     result, grid = distribution.computePDF(xMin, xMax, points)
+     print "x;y;z;PDF"
+@@ -52,8 +52,8 @@ try:
+     print "mean = ",  dist_3D.getMean()
+     print "cov = ", dist_3D.getCovariance()
+     print "sigma = ", dist_3D.getStandardDeviation()
+-    xMin = mean - 3.0 * sigma
+-    xMax = mean + 3.0 * sigma
++    xMin = mean - 2.9 * sigma
++    xMax = mean + 2.9 * sigma
+     print "xMin = ", xMin
+     print "xMax = ", xMax
+     result, grid = dist_3D.computePDF(xMin, xMax, points)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/openturns.git



More information about the debian-science-commits mailing list