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

Pickled test data embeds obsolete packages #125

Closed
guyer opened this issue Sep 19, 2014 · 1 comment
Closed

Pickled test data embeds obsolete packages #125

guyer opened this issue Sep 19, 2014 · 1 comment

Comments

@guyer
Copy link
Member

guyer commented Sep 19, 2014

The comparison data for several examples was pickled a long time ago, when we were still using Numeric, resulting in:

Failed example:
testData = cPickle.load(filestream)
Exception raised:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/doctest.py", line 1212, in __run
compileflags, 1) in test.globs
File "<doctest examples.phase.impingement.mesh20x20[33]>", line 1, in <module>
testData = cPickle.load(filestream)
ImportError: No module named Numeric

when Numeric is not present (and there's no real reason it should be anymore).

This arises#### in

The most future-proof solution is probably to change these data files into text tables of numbers.

Imported from trac ticket #140, created by guyer on 05-01-2008 at 15:38, last modified: 05-20-2008 at 16:44

@guyer
Copy link
Member Author

guyer commented Sep 19, 2014

SciPy 1.0.3 introduced loadtxt() and savetxt(), as illustrated in http://www.scipy.org/Cookbook/InputOutput. I changed the examples that compare to simple arrays to use these calls in r2520:2524

Trac comment by guyer on 05-20-2008 at 16:44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants