[med-svn] [Git][med-team/libbpp-phyl][master] Fixing failing test on some archs.

Julien Y. Dutheil gitlab at salsa.debian.org
Mon Apr 30 16:48:59 BST 2018


Julien Y. Dutheil pushed to branch master at Debian Med / libbpp-phyl


Commits:
2b47de61 by Julien Y. Dutheil at 2018-04-30T17:48:26+02:00
Fixing failing test on some archs.

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/increase_test_tolerance.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+libbpp-phyl (2.4.0-2) UNRELEASED; urgency=medium
+
+  * Increases likelihood test tolerance.
+
+ -- Julien Dutheil <julien.dutheil at univ-montp2.fr>  Mon, 30 Apr 2018 16:58:46 +0200
+
 libbpp-phyl (2.4.0-1) unstable; urgency=medium
 
   [ Julien Dutheil ]


=====================================
debian/patches/increase_test_tolerance.patch
=====================================
--- /dev/null
+++ b/debian/patches/increase_test_tolerance.patch
@@ -0,0 +1,22 @@
+diff --git a/test/test_likelihood_nh.cpp b/test/test_likelihood_nh.cpp
+index b4cd485..b8358d1 100644
+--- a/test/test_likelihood_nh.cpp
++++ b/test/test_likelihood_nh.cpp
+@@ -59,14 +59,14 @@ void fitModelNH(SubstitutionModelSet* model, DiscreteDistribution* rdist, const
+   tl.initialize();
+   cout << setprecision(20) << tl.getValue() << endl;
+   ApplicationTools::displayResult("* initial likelihood", tl.getValue());
+-  if (abs(tl.getValue() - initialValue) > 0.0001)
++  if (abs(tl.getValue() - initialValue) > 0.01)
+     throw Exception("Incorrect initial value.");
+   OptimizationTools::optimizeTreeScale(&tl);
+   ApplicationTools::displayResult("* likelihood after tree scale", tl.getValue());
+-  OptimizationTools::optimizeNumericalParameters2(&tl, tl.getParameters(), 0, 0.000001, 10000, 0, 0);
++  OptimizationTools::optimizeNumericalParameters2(&tl, tl.getParameters(), 0, 0.0001, 10000, 0, 0);
+   cout << setprecision(20) << tl.getValue() << endl;
+   ApplicationTools::displayResult("* likelihood after full optimization", tl.getValue());
+-  if (abs(tl.getValue() - finalValue) > 0.0001)
++  if (abs(tl.getValue() - finalValue) > 0.01)
+     throw Exception("Incorrect final value.");
+ }
+ 


=====================================
debian/patches/series
=====================================
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 unforce-cxxflags.patch
 reduce_test_time.patch
+increase_test_tolerance.patch



View it on GitLab: https://salsa.debian.org/med-team/libbpp-phyl/commit/2b47de610eda7c3e4c3bcf4a7ee0f6f60993c3b7

---
View it on GitLab: https://salsa.debian.org/med-team/libbpp-phyl/commit/2b47de610eda7c3e4c3bcf4a7ee0f6f60993c3b7
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20180430/4606e379/attachment-0001.html>


More information about the debian-med-commit mailing list