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

Relax a couple of equality tests causing i686 test failures on cibuildwheel #6031

Merged
merged 2 commits into from
Nov 12, 2021

Conversation

grlee77
Copy link
Contributor

@grlee77 grlee77 commented Nov 11, 2021

Description

This relaxes two tests for exact equality based on the two failures detailed at #6021 (comment).

This SLIC superpixel scaling test that is modified here was introduced fairly recently in #5518. I am not sure it was reasonable to expect exactly identical SLIC segmentation for different floating point scaling due to possible differences in numerical error internally. This relaxes to just check that >90% of the pixels have an identical label. Does this seem okay or are there better ideas?

Checklist

  • Docstrings for all functions
  • Gallery example in ./doc/examples (new features only)
  • Benchmark in ./benchmarks, if your changes aren't covered by an
    existing benchmark
  • Unit tests
  • Clean style in the spirit of PEP8
  • Descriptive commit messages (see below)

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.

…aling test

This case was failing with differences of <1e-15 when testing i686 linux wheels
…point inputs less strict

observed ~7-8% mismatch wheen testing i686 wheels via cibuildwheel
other architectures passed with 0% mismatch.
@grlee77 grlee77 added 🔧 type: Maintenance Refactoring and maintenance of internals 🤖 type: Infrastructure CI, packaging, tools and automation labels Nov 11, 2021
@grlee77 grlee77 added this to the 0.19 milestone Nov 11, 2021
@grlee77 grlee77 merged commit 2dbd577 into scikit-image:main Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 type: Infrastructure CI, packaging, tools and automation 🔧 type: Maintenance Refactoring and maintenance of internals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants