neurodsp-tools / neurodsp

Digital signal processing for neural time series.
https://neurodsp-tools.github.io/
Apache License 2.0
288 stars 62 forks source link

[MNT] - Fix use of nans in test for new numpy #333

Closed TomDonoghue closed 4 months ago

TomDonoghue commented 4 months ago

The tests are currently failing as new numpy has deprecated np.NaN, which we use in a couple of our tests. This PR fixes that. Other than our use of these NaN values in our tests, I don't think this switch from numpy should affect anything else.

In addition there is a minor update to a doctest example, to fix an error with doctest being very pedantic with type (float vs numpy float).