Skip to content

scipy stopped emitting a warnings for the matrix subclass in 1.3 - #3870

Closed
hmaarrfk wants to merge 1 commit into
scikit-image:masterfrom
hmaarrfk:relax_numpy
Closed

hmaarrfk wants to merge 1 commit into
scikit-image:masterfrom
hmaarrfk:relax_numpy

Conversation

@hmaarrfk

Copy link
Copy Markdown
Member

Description

It seems that scipy removed the warning in 1.13. Maybe also in some version of 1.12 since they are considering backporting it.
scipy/scipy#9764

Checklist

For reviewers

  • Check that the PR title is short, concise, and will make sense 1 year
    later.
  • Check that new functions are imported in corresponding __init__.py.
  • Check that new features, API changes, and deprecations are mentioned in
    doc/release/release_dev.rst.
  • Consider backporting the PR with @meeseeksdev backport to v0.14.x

@pep8speaks

pep8speaks commented Apr 28, 2019 •

Copy link
Copy Markdown

Hello @hmaarrfk! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-04-30 13:18:45 UTC

@hmaarrfk hmaarrfk changed the title scipy doesn't emit a warning for the matrix subclass anymore scipy will soon stop emitting a warning for the matrix subclass Apr 28, 2019
@hmaarrfk

Copy link
Copy Markdown
Member Author

Combined with #3869 tests should go green again.

rfezzani added a commit to rfezzani/scikit-image that referenced this pull request Apr 30, 2019
PYAMG_OR_SCIPY_WARNING = SCIPY_RANK_WARNING + '|' + PYAMG_MISSING_WARNING

if (Version(np.__version__) >= '1.15.0'):
if Version(np.__version__) >= '1.15.0' and Version(scipy.__version__) < '1.13':

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that the correct test is Version(scipy.__version__) < '1.3'. I tested it in #3850 and CI succeeded.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, such a brain fart there.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was actually about to go crazy trying to find out what was going wrong....

@hmaarrfk hmaarrfk changed the title scipy will soon stop emitting a warning for the matrix subclass scipy stopped emitting a warnings for the matrix subclass in 1.3 Apr 30, 2019
@soupault

soupault commented May 1, 2019

Copy link
Copy Markdown
Member

Included in #3869 .

@soupault soupault closed this May 1, 2019
@hmaarrfk
hmaarrfk deleted the relax_numpy branch May 1, 2019 11:25
stefanv pushed a commit that referenced this pull request May 1, 2019
* Fix doc for denoise guassian

* scipy doesn't emit warnings about the matrix subclalss anymore

* fixup scipy version check
@hmaarrfk

Copy link
Copy Markdown
Member Author

@meeseeksdev backport to v0.15.x

@lumberbot-app

lumberbot-app Bot commented May 13, 2019

Copy link
Copy Markdown

Something went wrong ... Please have a look at my logs.

emmanuelle pushed a commit that referenced this pull request May 7, 2020
* Add get_mask_segments and get_grid_segments

* Add centroid update option

* Add mask support to SLIC

* Fix mask support for SLIC

* Add tests for SLIC mask option

* Add ValueError if mask is not 2D

* Add support for mask SLIC 3D

* Add SLIC mask 3D tests

* Fix PEP8 E226

* Change mask dtype from int to bool

boolean array is not supported by Cython (see
https://cython-docs2.readthedocs.io/en/latest/src/tutorial/numpy.html)
Thats why it is declared as uint8 in _slic.pyx

* Change segments type and Fix mask condition

* Add benchmark for mask SLIC

* Fix mask slic behavior

Masked areas are now labeled 0. When no mask is provided, current behavior
(labelling starting from 0) is deprecated.

* Update test results for mask SLIC

* Remove the masked_value argument

* Fix the behavior induced by start_label

* Add galery example

* Fix CI example generation

* Refactor mask slic example

* Add fix from #3870

* Add fix from #3869

* Fix scipy version test

* Add review suggestions

* Add comments to _get_mask_centroids and a Note describing slic behaviour according to spacing value

* Fix test results for maskSLIC

* Revert test_slic modifications

* Fix test results for maskSLIC

* Fix test results for maskSLIC

* Address reviewer comments

* Move mask creation to setup in benchmark

* Add start_label parameter to slic

* Fix Raise section in slic docstring

* Add deprecation cycle for start_label management

* Set deprecation warning to FutureWarning

* Remove warning filtering in the tests

* Remove mask initialization if not used

* Remove the numpy array buffer syntax to use cython memoryview

* Fix TODO list

* Fix PEP8

Co-Authored-By: Stefan van der Walt <[email protected]>

* Update skimage/segmentation/slic_superpixels.py

Co-Authored-By: Stefan van der Walt <[email protected]>

* Update skimage/segmentation/slic_superpixels.py

Co-Authored-By: Stefan van der Walt <[email protected]>

* Update skimage/segmentation/slic_superpixels.py

Co-Authored-By: Stefan van der Walt <[email protected]>

* Update skimage/segmentation/slic_superpixels.py

Co-Authored-By: Stefan van der Walt <[email protected]>

* Fix docstrings

* Use clustering for mask centroids initialization

* Fix tests

* Update skimage/segmentation/_slic.pyx

Co-authored-by: Gregory R. Lee <[email protected]>

* Update skimage/segmentation/_slic.pyx

Co-authored-by: Gregory R. Lee <[email protected]>

* Update skimage/segmentation/slic_superpixels.py

Co-authored-by: Gregory R. Lee <[email protected]>

* Update doc/examples/segmentation/plot_mask_slic.py

Co-authored-by: Gregory R. Lee <[email protected]>

* Update doc/examples/segmentation/plot_mask_slic.py

Co-authored-by: Gregory R. Lee <[email protected]>

* Update skimage/segmentation/slic_superpixels.py

Co-authored-by: Gregory R. Lee <[email protected]>

* Update skimage/segmentation/slic_superpixels.py

Co-authored-by: Gregory R. Lee <[email protected]>

Co-authored-by: Riadh <[email protected]>
Co-authored-by: Stefan van der Walt <[email protected]>
Co-authored-by: Gregory R. Lee <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants