diff --git a/graspologic/layouts/colors.py b/graspologic/layouts/colors.py index 0bb2565d2..6f6c9639f 100644 --- a/graspologic/layouts/colors.py +++ b/graspologic/layouts/colors.py @@ -159,7 +159,7 @@ def sequential_colors( keys, values = zip(*node_and_value.items()) if use_log_scale: - values = map(math.log, values) + values = map(math.log, values) # type: ignore np_values = np.array(values).reshape(1, -1) new_values = minmax_scale(np_values, feature_range=(0, num_colors - 1), axis=1) 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))