Skip to content

pywt update, python 3 support, new numpy interface, refactoring - #7

Closed
rgommers wants to merge 145 commits into
nigma:masterfrom
PyWavelets:refactor-ready-for-pr
Closed

rgommers wants to merge 145 commits into
nigma:masterfrom
PyWavelets:refactor-ready-for-pr

Conversation

@rgommers

@rgommers rgommers commented Oct 1, 2013

Copy link
Copy Markdown
Collaborator

Hi @nigma, here's a large refactoring that adds single code base Python 3 support, a unit test suite, numpy-style docstrings, and a lot of changes to the internals. It should be fully backwards compatible.

I know this will not be trivial to review. And am actually not sure if this project is still active or not. If you're interested and want me to split this in a few parts, please let me know. Before doing that it would help if you could look at the overall structure of changes though to make sure you agree with those.

François Boulogne and others added 30 commits July 25, 2013 21:06
travis: check all branches + fix URL
Run tests with ``nosetests pywt`` or ``python -c "import pywt; pywt.test()"``.
This fixes all the easy issues; building with Python 3.x now works (without 2to3).
There's some 2.x specific C code that needs fixing before the package can be
imported and used with 3.x.
@meawoppl

meawoppl commented Oct 1, 2013

Copy link
Copy Markdown

Wow. Epic work. +1

@danodonovan

Copy link
Copy Markdown

Thanks Ralf, great work here. +1 to pull

@helderc

helderc commented Jun 10, 2014

Copy link
Copy Markdown

Nice work!

@rgbkrk

rgbkrk commented Jun 20, 2014

Copy link
Copy Markdown

@rgommers I think its time to make a proper fork here and declare a new version of pywavelets everyone can contribute back to. /cc @nigma

@rgommers

Copy link
Copy Markdown
Collaborator Author

@rgbkrk effectively that's what seems to be happening already with https://github.com/rgommers/pywt, there have been contributions to that repo from 4 different people already. I'm a bit hesitant to make that "official" though, because (a) I'd still prefer to get our changes merged here, and (b) I don't have much time to do this right.

Eventually the plan is to add my branch of pywt to scipy.signal. There was a GSoC project planned to achieve this (it would take a few weeks of work at least to do things right), but that unfortunately didn't happen in the end.

I suggest you start contributing to my branch if you have PRs to make. I'm not planning to declare an official release of a PyWavelets fork and make releases on PyPi. I'd appreciate any feedback from @nigma though on whether he plans to pick up work on this project in the future or not.

@helderc

helderc commented Jun 26, 2014

Copy link
Copy Markdown

Guys I would like to help on Py3 branch. What should I do?
Is there someone who could be my 'mentor'?

Thanks in advance.

@rgommers

Copy link
Copy Markdown
Collaborator Author

@helderc Python 3 support is completed in this PR and in https://github.com/rgommers/pywt.

If you're interested to help out to further improve code/docs/examples/... in https://github.com/rgommers/pywt, I'm happy to give you pointers. A first straightforward thing to do to get the pull request workflow down could be to update the README to explain that Python 3 supportis finished and that issues with that repo should be reported at https://github.com/rgommers/pywt/issues.

There are also some things that could be improved listed in https://github.com/rgommers/pywt/issues/38

@helderc

helderc commented Jun 26, 2014

Copy link
Copy Markdown

@rgommers Ah ok. I'll do that in this weekend.

I'm using Kubuntu (14.04) in a 32 bits machine. In official Ubuntu's repo we dont have the package of PyWavelets for Py3, only for Py2. Shoud I compile from the source to do it work on Py3? Have you any recipe for that?

Thank you.

@rgommers

Copy link
Copy Markdown
Collaborator Author

Indeed, you should install it from the git repo. To get started with git, this is a good description (just replace the numpy repo with mine when cloning, the rest is the same): http://docs.scipy.org/doc/numpy-dev/dev/

You should install the Python development headers with apt or muon on Kubuntu, should be called python3-all-dev. You also need numpy and Cython installed before attempting to build pywt. Once you've done that, you can install from the repo with

$ python setup.py install --user

for a local install. To verify that that worked, run the tests:

>>> import pywt
>>> pywt.test()

@helderc

helderc commented Jun 26, 2014

Copy link
Copy Markdown

Great! I'll do that.

Thank you @rgommers.

@rgommers

Copy link
Copy Markdown
Collaborator Author

@rgommers rgommers closed this Aug 15, 2015
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.

6 participants