Open nden opened 7 years ago
On one occasion the lesson mentions aliasing a package during import as in
import numpy as np
Perhaps it's worth mentioning the constructfrom ... import ...
which is also very often used in scientific software and warn against usingfrom ... import *
.
As I understand it, the Python lessons in Software Carpentry are trying to teach basic programming skills and concepts with Python as a vehicle for the instruction. Software Carpentry is explicitly not trying to teach Python. The various import styles show above are very Python specific and likely don't belong in the Software Carpentry lessons.
On one occasion the lesson mentions aliasing a package during import as in
import numpy as np
Perhaps it's worth mentioning the constructfrom ... import ...
which is also very often used in scientific software and warn against usingfrom ... import *
.While reading the section "Analyzing Patient data" I thought a call to the matplotlib
colorbar()
function after theimshow()
call would be useful.