Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump version, remove unnec imports, update release #261

Merged
merged 2 commits into from
Jul 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@

## Unreleased

## 2.1.0

### Added

- ability to live-update the min-intersection threshold for edges on the d3 vis (#231)

### Fixed/Changed

- Update docs and sphinx-gallery to build again.
- Update CI/CD runners to test modern versions of python; drop python 3.7 compatibility.
- Update CI/CD runners to test modern versions of python; drop python 3.6, 3.7 compatibility.
- Change visual tests to use built-in `int` type rather than `np.uint8`.
- Removed deprecated np.asscalar call (#247, #249, #252).
- Removed `python-igraph` dependency in favor of `igraph` (#249)

## 2.0.1

Expand Down
2 changes: 1 addition & 1 deletion kmapper/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.0.1"
__version__ = "2.1.0"
4 changes: 0 additions & 4 deletions kmapper/plotlyviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@
from .visuals import (
_scale_color_values,
_size_node,
_format_projection_statistics,
_format_cluster_statistics,
_node_color_function,
_format_meta,
_to_html_format,
_map_val2color,
_graph_data_distribution,
_build_histogram,
_tooltip_components,
)

Expand Down
9 changes: 4 additions & 5 deletions test/test_plotly.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
Tests to ensure the plotly data preparation functions work as intended.

"""

import pytest

import json
import numpy as np
from sklearn.datasets import make_circles

from kmapper import KeplerMapper
from kmapper.visuals import _build_histogram
from kmapper.plotlyviz import (
_build_histogram,
default_colorscale,
get_mapper_graph,
_map_val2color,
plotly_graph,
scomplex_to_graph,
node_hist_fig
node_hist_fig,
)
from kmapper.utils import _test_raised_deprecation_warning

Expand All @@ -32,7 +32,6 @@ def test_histogram_default_colorscale():


def test_kepler_to_graph(sc):

json_graph, mapper_summary, colorf_distribution = get_mapper_graph(sc)

assert json.loads(json.dumps(json_graph)) == json_graph
Expand All @@ -41,7 +40,6 @@ def test_kepler_to_graph(sc):


def test_kepler_to_graph_with_colorscale(sc):

json_graph, mapper_summary, colorf_distribution = get_mapper_graph(
sc, colorscale=default_colorscale
)
Expand Down Expand Up @@ -94,6 +92,7 @@ def test_color_function_deprecated_replaced():
)
_test_raised_deprecation_warning(w)


def test_hovering_widgets_node_hist_fig(sc):
kmgraph, mapper_summary, n_color_distribution = get_mapper_graph(
sc, colorscale=default_colorscale
Expand Down