Currently, if I import any data with auto-07p, like this
>>> import auto >>> S2 = auto.load('S2', e='wf') Runner configured >>> S2['U(2)'][:3] /usr/lib/auto-07p/python/Points.py:1086: VisibleDeprecationWarning: `rank` is deprecated; use the `ndim` attribute or function instead. To find the rank of a matrix see `numpy.linalg.matrix_rank`. r = rank(array_temp) /usr/lib/auto-07p/python/Points.py:968: VisibleDeprecationWarning: `rank` is deprecated; use the `ndim` attribute or function instead. To find the rank of a matrix see `numpy.linalg.matrix_rank`. if rank(vals) == 0: /usr/lib/auto-07p/python/Points.py:996: VisibleDeprecationWarning: `rank` is deprecated; use the `ndim` attribute or function instead. To find the rank of a matrix see `numpy.linalg.matrix_rank`. r=rank(self.indepvararray) /usr/lib/auto-07p/python/Points.py:491: VisibleDeprecationWarning: `rank` is deprecated; use the `ndim` attribute or function instead. To find the rank of a matrix see `numpy.linalg.matrix_rank`. r = rank(array_temp) array([-3.14145317, -3.14139868, -3.14134285])
it breaks matplotlib, for example:
>>> import matplotlib.pylab as plt >>> plt.plot([1, 2, 3]) [...] >>> plt.show(_) [...] File "/home/sk/venv/dev/lib/python3.5/site-packages/numpy/core/numeric.py", line 868, in flatnonzero return np.nonzero(np.ravel(a))[0] File "/home/sk/venv/dev/lib/python3.5/site-packages/numpy/core/fromnumeric.py", line 1574, in ravel return asanyarray(a).ravel(order=order) RecursionError: maximum recursion depth exceeded
It seems that removing numpy.nonzero override with flatnonzero - solves this problem.
I have commented out the line
N.nonzero = N.flatnonzero
, however, I still get an error message when I try to plot something using Python 3:Please try:
https://github.com/auto-07p/auto-07p
it's fixed there and the plotter tested with Python 3, numpy and matplotlib.