Just an FYI that np.in1d will be deprecated with the next version of NumPy and I assume will eventually be a hard error. This just updates calls to np.in1d to np.isin, which is the the NumPy standard. I also opened a PR in phylib to do the same.
I also scanned both repos for some other hard errors coming like float_NaN and Inf which are aliases which will be dropped in the next version of NumPy (recs are to use float64nan and inf, which both repos already use where necessary).
@rossant
Just an FYI that
np.in1d
will be deprecated with the next version of NumPy and I assume will eventually be a hard error. This just updates calls tonp.in1d
tonp.isin
, which is the the NumPy standard. I also opened a PR inphylib
to do the same.I also scanned both repos for some other hard errors coming like
float_
NaN
andInf
which are aliases which will be dropped in the next version of NumPy (recs are to usefloat64
nan
andinf
, which both repos already use where necessary).