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

regression in pandas test suite with mpl 1.4.0 #3604

Closed
sandrotosi opened this issue Oct 1, 2014 · 2 comments
Closed

regression in pandas test suite with mpl 1.4.0 #3604

sandrotosi opened this issue Oct 1, 2014 · 2 comments

Comments

@sandrotosi
Copy link
Contributor

Hello,
while testing impact of mpl 1.4.0 on Debian packaging depending on it, I noticed this regression in pandas test suite (not happening with mpl 1.3.1):

======================================================================
ERROR: test_dateindex_conversion (pandas.tseries.tests.test_converter.TestDateTimeConverter)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/buildd/pandas-0.14.1/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tseries/tests/test_converter.py", line 77, in test_dateindex_conversion
    xp = converter.dates.date2num(dateindex)
  File "/usr/lib/python2.7/dist-packages/matplotlib/dates.py", line 310, in date2num
    return _to_ordinalf_np_vectorized(d)
  File "/usr/lib/python2.7/dist-packages/numpy/lib/function_base.py", line 1573, in __call__
    return self._vectorize_call(func=func, args=vargs)
  File "/usr/lib/python2.7/dist-packages/numpy/lib/function_base.py", line 1633, in _vectorize_call
    ufunc, otypes = self._get_ufunc_and_otypes(func=func, args=args)
  File "/usr/lib/python2.7/dist-packages/numpy/lib/function_base.py", line 1597, in _get_ufunc_and_otypes
    outputs = func(*inputs)
  File "/usr/lib/python2.7/dist-packages/matplotlib/dates.py", line 204, in _to_ordinalf
    base = float(dt.toordinal())
AttributeError: 'numpy.datetime64' object has no attribute 'toordinal'

----------------------------------------------------------------------

numpy version is 1.8.2

@tacaswell
Copy link
Member

See pandas-dev/pandas#7233

This has been resolved on their side. mpl never claimed to support datetime64 and the fact that it ever worked was an accident.

@sandrotosi
Copy link
Contributor Author

Thanks! I could have checked pandas issues ;)

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

No branches or pull requests

2 participants