Skip to content

Commit

Permalink
fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Saul committed Feb 15, 2019
1 parent 96e3fda commit 0dc131d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions kmapper/kmapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,17 +475,11 @@ def map(
"Deprecation Warning: Please supply km.Cover object. Explicitly passing in n_cubes/nr_cubes and overlap_perc will be deprecated in future releases. ",
DeprecationWarning,
)
if coverer is not None:
warnings.warn(
"Deprecation Warning: coverer has been renamed to `cover`. Please use `cover` from now on.",
DeprecationWarning,
)


# If user supplied nr_cubes, overlap_perc, or coverer, opt for those
# TODO: remove this conditional after release in 1.2
if coverer is not None:
self.cover = coverer
elif nr_cubes is not None or overlap_perc is not None:
if nr_cubes is not None or overlap_perc is not None:
n_cubes = nr_cubes if nr_cubes else 10
overlap_perc = overlap_perc if overlap_perc else 0.1
self.cover = Cover(n_cubes=n_cubes, perc_overlap=overlap_perc)
Expand Down
2 changes: 1 addition & 1 deletion test/test_coverer.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_complete_pipeline(self, CoverClass):

data = data.astype(np.float64)
mapper = KeplerMapper()
graph = mapper.map(data, coverer=CoverClass())
graph = mapper.map(data, cover=CoverClass())
mapper.visualize(graph)


Expand Down

0 comments on commit 0dc131d

Please sign in to comment.