Skip to content

Commit

Permalink
06-files.md: update exercise "generate composite statistics" (#779)
Browse files Browse the repository at this point in the history
changes not to use in place operators, which are being introduced in a later lesson
  • Loading branch information
aliceminotto authored and ldko committed Jan 27, 2020
1 parent d33644f commit 2f9609c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions episodes/06-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ where the maxima are a bit less regular, but the minima are consistently zero.
> # sum each new file's data into composite_data as it's read
> #
> # and then divide the composite_data by number of samples
> composite_data /= len(filenames)
> composite_data = composite_data / len(filenames)
> ~~~
> {: .language-python}
>
Expand All @@ -164,9 +164,9 @@ where the maxima are a bit less regular, but the minima are consistently zero.
> >
> > for filename in filenames:
> > data = numpy.loadtxt(fname = filename, delimiter=',')
> > composite_data += data
> > composite_data = composite_data + data
> >
> > composite_data /= len(filenames)
> > composite_data = composite_data / len(filenames)
> >
> > fig = matplotlib.pyplot.figure(figsize=(10.0, 3.0))
> >
Expand Down

0 comments on commit 2f9609c

Please sign in to comment.