kthyng / tracpy

Fortran core of Tracmass + Python wrapping around the outside.
MIT License
28 stars 19 forks source link

Latest version of matplotlib has removed matplotlib.mlab.find #12

Open imcslatte opened 5 years ago

imcslatte commented 5 years ago

matplotlib.mlab.find has been removed in Matplotlib version 3.1.1. Causing a failure in tracpy_class.py.

Eli Hunter Rutgers University

bilgetutak commented 4 years ago

Adding the below function 'find', as defined previously in Matplotlib in to the tools.py will help.

def find(condition):
        res, = np.nonzero(np.ravel(condition))
        return res