datacarpentry / python-ecology-lesson

Data Analysis and Visualization in Python for Ecologists
https://datacarpentry.org/python-ecology-lesson
Other
160 stars 309 forks source link

Ep8: Issue when using numpy #411

Closed Benfeitas closed 5 years ago

Benfeitas commented 5 years ago

In episode 8, numpy is imported as import numpy but then the beta distribution calls it with np. So it raises the import error for np.

beta_draws = np.random.beta(a, b)

Either import numpy as np and fix other lines where it is used; or fix beta_draws = numpy.random.beta(a, b).

wrightaprilm commented 5 years ago

I caught this after teaching last month, and then forgot to fix it. I'll sort that out now.

Thanks!