I have upgraded the libraries to python3. All future code can be written in python3, and it will remain compatible with legacy python (2.7) using the python-future package. This does add an extra dependency, but the package is easily installed through 'pip'.
I needed a way to ensure that the code worked on both platforms. So I also added a test script that runs all your examples. It collects your and runs your examples with a monkeypatched matplotlib to save all the figures to a pdf file. Then it is easy to compare the output of running all examples in both Python 2 and 3. Simply run py.test execute all examples:
Hi Todd
I have upgraded the libraries to python3. All future code can be written in python3, and it will remain compatible with legacy python (2.7) using the python-future package. This does add an extra dependency, but the package is easily installed through 'pip'.
I needed a way to ensure that the code worked on both platforms. So I also added a test script that runs all your examples. It collects your and runs your examples with a monkeypatched matplotlib to save all the figures to a pdf file. Then it is easy to compare the output of running all examples in both Python 2 and 3. Simply run py.test execute all examples:
You can see two pdf files here: rft1d_examples_py2.7.pdf rft1d_examples_py3.5.pdf