@@ -28,12 +28,12 @@ while `?` matches any one character.
2828We can use this to get the names of all the CSV files in the current directory:
2929
3030~~~
31- print(glob.glob('data/ inflammation*.csv'))
31+ print(glob.glob('inflammation*.csv'))
3232~~~
3333{: .python}
3434
3535~~~
36- ['data/ inflammation-05.csv', 'data/ inflammation-11.csv', 'data/ inflammation-12.csv', 'data/ inflammation-08.csv', 'data/ inflammation-03.csv', 'data/ inflammation-06.csv', 'data/ inflammation-09.csv', 'data/ inflammation-07.csv', 'data/ inflammation-10.csv', 'data/ inflammation-02.csv', 'data/ inflammation-04.csv', 'data/ inflammation-01.csv']
36+ ['inflammation-05.csv', 'inflammation-11.csv', 'inflammation-12.csv', 'inflammation-08.csv', 'inflammation-03.csv', 'inflammation-06.csv', 'inflammation-09.csv', 'inflammation-07.csv', 'inflammation-10.csv', 'inflammation-02.csv', 'inflammation-04.csv', 'inflammation-01.csv']
3737~~~
3838{: .output}
3939
@@ -49,7 +49,7 @@ If we want to start by analyzing just the first three files in alphabetical orde
4949import numpy
5050import matplotlib.pyplot
5151
52- filenames = sorted(glob.glob('data/ inflammation*.csv'))
52+ filenames = sorted(glob.glob('inflammation*.csv'))
5353filenames = filenames[0:3]
5454for f in filenames:
5555 print(f)
@@ -115,7 +115,7 @@ where the maxima are a bit less regular, but the minima are consistently zero.
115115> > import numpy
116116> > import matplotlib.pyplot
117117> >
118- > > filenames = glob.glob('data/ inflammation*.csv')
118+ > > filenames = glob.glob('inflammation*.csv')
119119> >
120120> > data0 = numpy.loadtxt(fname=filenames[0], delimiter=',')
121121> > data1 = numpy.loadtxt(fname=filenames[1], delimiter=',')
@@ -137,7 +137,7 @@ where the maxima are a bit less regular, but the minima are consistently zero.
137137> Use each of the files once to generate a dataset containing values averaged over all patients:
138138>
139139> ~~~
140- > filenames = glob.glob('data/ inflammation*.csv')
140+ > filenames = glob.glob('inflammation*.csv')
141141> composite_data = numpy.zeros((60,40))
142142> for f in filenames:
143143> # sum each new file's data into as it's read
0 commit comments