Open stefano-rgc opened 4 years ago
Hi Stefano,
Thanks for bringing this up. I double-checked, and I had commented out that line because the function rec_append_fields() is depreciated and has been removed in matplotlib 3.1.
https://matplotlib.org/3.0.0/api/mlab_api.html#matplotlib.mlab.rec_append_fields
I will try to look for an alternative :)
Cheers, Karan
Hi Karan,
I have had trouble with this functionality as well: the problem is that recarrays have been moved from mpl to numpy, but it's only in numpy 1.15 and up (which is a higher version than the repository environment has).
The functionality can now be found under: np.lib.recfunctions.rec_append_fields() https://numpy.org/devdocs/user/basics.rec.html - (search for 'rec_append_fields')
As a side note, depending on the functionality you need, structured arrays might be a good alternative.
Cheers, Luc
Hi Luc,
Awesome! have you tested this function on your local repository? If it works in the way that it's intended to, then I'll update the version of numpy and implement it :)
Cheers, Karan
Yeah it works, I use that in my local version of the repository, along with al the updated packages. :) In fact, you can find the change here in my fork: https://github.com/LucIJspeert/IvSPythonRepository/commit/abec847ea13be5f94be8daa385a34d3b5dbab210
Hi everyone, I have updated the repository to reflect the changes. Could you please check if it works now @stefano-rgc?
Cheers, Karan
After I made a fresh installation of the IvSPythonRepository and the corresponding Conda environment, I get a Python
TypeError
when running the following code:Timothy identified the problem in the function
recarr_join
within the fileivs/aux/numpy_ext.py
.In the version I am using, such function reads (note the commented line):
While in the working version of Timothy, the same function reads:
I have now changed my local version of the IvS repository but I think the change should be done in the official version too.