[med-svn] [Git][med-team/python-leidenalg][master] 3 commits: New upstream version 0.8.7

Nilesh Patra (@nilesh) gitlab at salsa.debian.org
Fri Jul 9 17:38:11 BST 2021



Nilesh Patra pushed to branch master at Debian Med / python-leidenalg


Commits:
99833386 by Nilesh Patra at 2021-07-09T22:02:28+05:30
New upstream version 0.8.7
- - - - -
db1e287a by Nilesh Patra at 2021-07-09T22:02:30+05:30
Update upstream source from tag 'upstream/0.8.7'

Update to upstream version '0.8.7'
with Debian dir d0fe0a37030d84c63b6f0ccccdde200c14a6ab92
- - - - -
62e97532 by Nilesh Patra at 2021-07-09T22:03:29+05:30
Upload to unstable

- - - - -


5 changed files:

- .github/workflows/build.yml
- CHANGELOG
- debian/changelog
- include/Optimiser.h
- src/leidenalg/Optimiser.cpp


Changes:

=====================================
.github/workflows/build.yml
=====================================
@@ -4,11 +4,12 @@ on:
   push:
     branches:
       - master
+    tags:
+      - '*'
   pull_request:
     branches:
       - master
 
-
 env:
   CIBW_TEST_REQUIRES: ddt
   CIBW_TEST_COMMAND: "cd {project} && python -m unittest -v"


=====================================
CHANGELOG
=====================================
@@ -1,3 +1,6 @@
+0.8.7
+- Improved numerical stability
+
 0.8.6
 - Removed accidentally left DEBUG statement
 


=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+python-leidenalg (0.8.7-1) unstable; urgency=medium
+
+  * New upstream version 0.8.7
+
+ -- Nilesh Patra <nilesh at debian.org>  Fri, 09 Jul 2021 22:03:03 +0530
+
 python-leidenalg (0.8.6-1) unstable; urgency=medium
 
   * New upstream version 0.8.6


=====================================
include/Optimiser.h
=====================================
@@ -4,6 +4,7 @@
 #include "MutableVertexPartition.h"
 #include <set>
 #include <map>
+#include <cfloat>
 
 #include <iostream>
 using std::cerr;


=====================================
src/leidenalg/Optimiser.cpp
=====================================
@@ -645,7 +645,7 @@ double Optimiser::move_nodes(vector<MutableVertexPartition*> partitions, vector<
     #endif
 
     size_t max_comm = v_comm;
-    double max_improv = (0 < max_comm_size && max_comm_size < partitions[0]->csize(v_comm)) ? -INFINITY : 0;
+    double max_improv = (0 < max_comm_size && max_comm_size < partitions[0]->csize(v_comm)) ? -INFINITY : 10*DBL_EPSILON;
     size_t v_size = graphs[0]->node_size(v);
     for (size_t comm : comms)
     {
@@ -1118,7 +1118,7 @@ double Optimiser::move_nodes_constrained(vector<MutableVertexPartition*> partiti
     #endif
 
     size_t max_comm = v_comm;
-    double max_improv = (0 < max_comm_size && max_comm_size < partitions[0]->csize(v_comm)) ? -INFINITY : 0;
+    double max_improv = (0 < max_comm_size && max_comm_size < partitions[0]->csize(v_comm)) ? -INFINITY : 10*DBL_EPSILON;
     size_t v_size = graphs[0]->node_size(v);
     for (size_t comm : comms)
     {



View it on GitLab: https://salsa.debian.org/med-team/python-leidenalg/-/compare/6961a5fd4911492de35b798dfb9459cb870ce91d...62e9753221365bd726a3c97986544550f7666c80

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-leidenalg/-/compare/6961a5fd4911492de35b798dfb9459cb870ce91d...62e9753221365bd726a3c97986544550f7666c80
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/20210709/1af71bb3/attachment-0001.htm>


More information about the debian-med-commit mailing list