Skip to content

Adds PyWavelets as required dependency - #2019

Closed
stsievert wants to merge 2 commits into
scikit-image:masterfrom
stsievert:require-pywavelets
Closed

stsievert wants to merge 2 commits into
scikit-image:masterfrom
stsievert:require-pywavelets

Conversation

@stsievert

Copy link
Copy Markdown
Contributor

Description

This PR adds PyWavelets as a required dependency. PyWavelets is pip installable, making for quick changes to requirements.txt

References

@stefanv

stefanv commented Mar 21, 2016

Copy link
Copy Markdown
Member

I think we should be hesitant to add dependencies that are not packages on
most platforms. Adding optional dependencies are fine. See, e.g., what
I recently did with Dask.

But we can also add these dependencies as the need arises.

@JDWarner

Copy link
Copy Markdown
Contributor

It might be helpful to sketch out the barriers you'd consider must be met before this package could become a required dependency. We were talking about colorspacious recently, which is pip installable but not packaged widely either, so I assume it's mostly the C compiler requirement. This is shipped with essentially every OS save Windows, so is it just Windows wheels?

I'd be motivated to help meet this happen, because there is huge, untapped potential for wavelets in scikit-image and I strongly think we need these capabilities. Optional dependencies are often messy, make testing the code base much more difficult with each, and should be more niche than this. Perhaps it isn't quite ready yet, but IMHO making robust wavelet capabilities required is the right path forward.

@soupault

Copy link
Copy Markdown
Member

@stsievert has made it an optional dependency now.
Travis fails on Py3.4 due to the missing PyWavelets .whl in skimage repo.

@stefanv

stefanv commented Mar 22, 2016

Copy link
Copy Markdown
Member

It's not pip installable?

@stefanv

stefanv commented Mar 22, 2016

Copy link
Copy Markdown
Member

@JDWarner The Debian packaging situation is the tricky bit. But we can always patch out dependencies there, it's not too bad. I am not going to hold up development of the library because of Debian, for sure.

@soupault

Copy link
Copy Markdown
Member

@stefanv It has to be.
For Py34 Travis uses

pip install --retries 3 -q -r ./optional_requirements.txt --no-index --trusted-host travis-wheels.scikit-image.org --find-links=http://travis-wheels.scikit-image.org/

what doesn't really consider pip repo, only the scikit-image one. (--no-index)

@stsievert

Copy link
Copy Markdown
Contributor Author

So it looks as though I have to somehow add a PyWavelets .whl file to travis-wheels.scikit-image.org? How does one go about doing that?

@blink1073

Copy link
Copy Markdown
Contributor

@stsievert, I built the wheels and they are available now.

@JDWarner

Copy link
Copy Markdown
Contributor

I restarted the 3.4 build.

@soupault

Copy link
Copy Markdown
Member

LGTM.

@JDWarner I agree with you, but in accordance to the current state of development, this dependency shouldn't really be required. This PR sets a good starting point to enable step-by-step development of wavelets-based algorithms in skimage, and I think, once there will be a critical mass of such algorithms or some complex case of development will arise, this has to become required.

@soupault soupault added 🔧 type: Maintenance Refactoring and maintenance of internals new feature and removed 🔧 type: Maintenance Refactoring and maintenance of internals new feature labels Mar 31, 2016
@stsievert

Copy link
Copy Markdown
Contributor Author

Any more on this or can it be merged in?

@stefanv

stefanv commented Apr 5, 2016

Copy link
Copy Markdown
Member

@stsievert This PR in itself is fine, but why should it be merged until there are functions inside of skimage that require wavelets?

@JDWarner

JDWarner commented Apr 5, 2016

Copy link
Copy Markdown
Contributor

This is a chicken-and-egg thing.

Personally, I have a few wavelet based algorithms I'd like to have in the package but have been waiting to work on them until there is a dependable framework to support them I can base off of.

I can personally guarantee there would be use of this before 0.13.

@stefanv

stefanv commented Apr 5, 2016

Copy link
Copy Markdown
Member

OK, how about this compromise: we merge the pull request now and immediately file an issue to have the code reverted again (for milestone 0.13), unless a PR comes along that uses it.

@stsievert

Copy link
Copy Markdown
Contributor Author

I have another PR open that implements wavelet denoising. Should I include pywavelets in that PR instead?

On Apr 4, 2016, 10:01 PM -0500, Stefan van der [email protected], wrote:

OK, how about this compromise: we merge the pull request now and immediately file an issue to have the code reverted again (for milestone 0.13), unless a PR comes along that uses it.

—
You are receiving this because you were mentioned.
Reply to this email directly orview it on GitHub(#2019 (comment))

@stefanv

stefanv commented Apr 5, 2016

Copy link
Copy Markdown
Member

Yes, let's do that, if you don't mind.

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.

5 participants