Skip to content

Commit

Permalink
Fixing broken stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
arvkevi committed Dec 28, 2023
1 parent 927ceaf commit 1abecf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ To set up `img2cmap` for local development:

pip install img2cmap[dev]

5. When you're done making changes run all the checks and docs builder with `tox <https://tox.readthedocs.io/en/latest/install.html>`_ one command::
5. When you're done making changes run all the checks and docs builder with `tox <https://tox.wiki/en/latest/installation.html>`_ one command::

tox

Expand Down
5 changes: 2 additions & 3 deletions tests/test_img2cmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def test_cmap_optimal_plot(test_image_input):
imageconverter = ImageConverter(test_image_input)
cmaps, _, _ = imageconverter.generate_optimal_cmap(random_state=42)
for _, cmap_ in cmaps.items():

assert not np.any(np.all(np.isclose(cmap_.colors, 1, atol=1e-9)))
assert not np.any(np.all(np.isclose(cmap_.colors, 0, atol=1e-9)))

Expand Down Expand Up @@ -135,6 +134,6 @@ def test_compute_optimal_hexcodes():


def test_break_kneed():
with pytest.raises(UserWarning):
with pytest.raises(ValueError):
imageconverter = ImageConverter(image_urls[0])
imageconverter.generate_optimal_cmap(max_colors=5, random_state=42)
imageconverter.generate_optimal_cmap(max_colors=1, random_state=42)

0 comments on commit 1abecf1

Please sign in to comment.