Skip to content

Commit ca72309

Browse files
committed
Use numpy to read data from CSV.
1 parent 3ea7901 commit ca72309

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

doc/examples/resting_state_fmri.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
#Import from other libraries:
3232
import numpy as np
3333
import matplotlib.pyplot as plt
34-
from matplotlib.mlab import csv2rec
3534

3635
import nitime
3736
#Import the time-series objects:
@@ -49,14 +48,12 @@
4948

5049
"""
5150
52-
We use csv2rec to read the data in from file to a recarray:
51+
We use Numpy to read the data in from file to a recarray:
5352
5453
"""
5554

5655
data_path = os.path.join(nitime.__path__[0], 'data')
5756

58-
data_rec = csv2rec(os.path.join(data_path, 'fmri_timeseries.csv'))
59-
6057
data_rec = np.genfromtxt(os.path.join(data_path, 'fmri_timeseries.csv'),
6158
names=True, delimiter=',')
6259

0 commit comments

Comments
 (0)