Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dgarcia:python312:numeric
python-python-louvain
tests-int-division.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tests-int-division.patch of Package python-python-louvain
Index: python-louvain-0.16/test_community.py =================================================================== --- python-louvain-0.16.orig/test_community.py +++ python-louvain-0.16/test_community.py @@ -61,7 +61,7 @@ class ModularityTest(unittest.TestCase): graph = nx.erdos_renyi_graph(50, 0.1) part = dict([]) for node in graph: - part[node] = random.randint(0, self.number_of_tests / 10) + part[node] = random.randint(0, self.number_of_tests // 10) mod = co.modularity(part, graph) self.assertGreaterEqual(mod, -1) self.assertLessEqual(mod, 1)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor