DynamicsAndNeuralSystems / pyspi

Comparative analysis of pairwise interactions in multivariate time series.
https://time-series-features.gitbook.io/pyspi/
GNU General Public License v3.0
199 stars 26 forks source link

Enable indexing into data object like a numpy array #19

Open olivercliff opened 1 year ago

olivercliff commented 1 year ago

Using the getitem method, we should be able to do the following:

print(data[i])

Rather than

print(data.to_numpy()[i])

Which makes a lot of the code neater. Potentially also enable the setitem feature, but that might be dubious