serazing / xscale

Xscale a library of multi-dimensional signal processing tools using parallel computing
Apache License 2.0
25 stars 12 forks source link

error with _utils.py (```pd.api.types.is_datetime64_dtype``` function not found) #10

Open stephanieleroux opened 6 years ago

stephanieleroux commented 6 years ago

Hi Guillaume, Thanks for sharing your routines! I have started using some of your fft functions. Just in case it'd be useful to you and to others: when i installed the package on my laptop (OSX, with anacconda python 3.5.5) i ran your setup.py and everything went fine (no error message) but then, when i imported the package in my python script, i got an error at l.173 in _utils.py (function pd.api.types.is_datetime64_dtype not found). I solved my problem by replacing : l.173 if pd.api.types.is_datetime64_dtype(x): by: if pd.core.common.is_datetime64_dtype(x): and then re-ran python setup.py install.

serazing commented 6 years ago

Hi Stephanie,

Are you using the latest version of xscale ? It seems that I have already corrected this error. See there the latest _utils.py.

Try git pull to update your local repository.

stephanieleroux commented 6 years ago

Ok, thanks. My mistake. i downloaded the package last week and true i haven't updated it since then.

serazing commented 6 years ago

Let me know if it works. I will close the issue if everything is right.

stephanieleroux commented 6 years ago

After updating xscale and testing again:

serazing commented 6 years ago

Ok, I understand better now. I have the same issue with the latest version of pandas. I think you have inverted your correction with the original code in your first message.

serazing commented 6 years ago

I just submitted a pull request, which should correct this issue. Feel free to submit PRs to fix future bugs.