From fad9b403f6cf0ed3762df25e355a3f9d971798be Mon Sep 17 00:00:00 2001 From: Ben Pedigo Date: Mon, 22 Jul 2024 15:30:22 -0700 Subject: [PATCH 1/2] bump gensim version --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 62868ad09..8502c4f9e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -29,7 +29,7 @@ python_requires = >=3.8, <3.12 install_requires = anytree>=2.8.0 beartype>=0.10.0 - gensim>=4.0.0,!=4.2.0 # bug with 4.2.0 on some platforms, issue #998 + gensim>=4.3.2 graspologic-native>=1.1.1 hyppo>=0.3.2 # bug with lower versions and scipy>=1.8 joblib>=0.17.0 # Older versions of joblib cause issue #806. Transitive dependency of hyppo. From c2a0199ef0ad20bf0c5d6920aac2630d39e5cc0c Mon Sep 17 00:00:00 2001 From: Ben Pedigo Date: Mon, 22 Jul 2024 15:36:30 -0700 Subject: [PATCH 2/2] fix formatting --- graspologic/pipeline/__init__.py | 1 + graspologic/pipeline/embed/omnibus_embedding.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/graspologic/pipeline/__init__.py b/graspologic/pipeline/__init__.py index 8b90689bd..56813acd2 100644 --- a/graspologic/pipeline/__init__.py +++ b/graspologic/pipeline/__init__.py @@ -15,6 +15,7 @@ is to bridge this gap. """ + # Copyright (c) Microsoft Corporation. # Licensed under the MIT license. diff --git a/graspologic/pipeline/embed/omnibus_embedding.py b/graspologic/pipeline/embed/omnibus_embedding.py index cffe2bcb0..cdd7a988a 100644 --- a/graspologic/pipeline/embed/omnibus_embedding.py +++ b/graspologic/pipeline/embed/omnibus_embedding.py @@ -165,9 +165,9 @@ def omnibus_embedding_pairwise( for graph in graphs[1:]: union_graph.add_edges_from(graph.edges()) - union_graph_lcc: Union[ - nx.Graph, nx.Digraph, nx.OrderedGraph, nx.OrderedDiGraph - ] = largest_connected_component(union_graph) + union_graph_lcc: Union[nx.Graph, nx.Digraph, nx.OrderedGraph, nx.OrderedDiGraph] = ( + largest_connected_component(union_graph) + ) union_graph_lcc_nodes: Set[Any] = set(list(union_graph_lcc.nodes())) union_node_ids = np.array(list(union_graph_lcc_nodes))