Commit cda885bc authored by Emilio Ambite's avatar Emilio Ambite

latest filled

parent 17e6c00e
...@@ -1023,8 +1023,7 @@ ...@@ -1023,8 +1023,7 @@
} }
], ],
"source": [ "source": [
"image = matplotlib.pyplot.imshow(data) # Remider: explain %matplotlib inline Note: Ipython!!\n", "image = matplotlib.pyplot.imshow(data)"
" # otherwise matplotlib.pyplot.show() is mandatory!!"
] ]
}, },
{ {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
"source": [ "source": [
"Difference with array?\n", "Difference with array?\n",
"<li>They are very similar but they do not belong to numpy, and do not have some of the attributes of numpy arrays, such as mean sd max min etc... Beside this they are pretty similar in concept\n", "<li>They are very similar but they do not belong to numpy, and do not have some of the attributes of numpy arrays, such as mean sd max min etc... Beside this they are pretty similar in concept\n",
"<li>We create a list the same " "<li>We create a list using brackets"
] ]
}, },
{ {
......
...@@ -383,9 +383,9 @@ ...@@ -383,9 +383,9 @@
], ],
"source": [ "source": [
"filenames = sorted(glob.glob('inflammation*.csv'))\n", "filenames = sorted(glob.glob('inflammation*.csv'))\n",
"filenames = filenames[0:3] # Get elements 0, 1 and 2 of the list corresponding to inf-01 inf-02 and inf-03\n", "# Get elements 0, 1 and 2 of the list corresponding to inf-01 inf-02 and inf-03\n",
"filenames\n", "\n",
"for f in filenames:\n", "for f in filenames[:3]:\n",
" print(f,':')\n", " print(f,':')\n",
" data = numpy.loadtxt(fname=f, delimiter=',')\n", " data = numpy.loadtxt(fname=f, delimiter=',')\n",
" if (data.max(axis=0)[0]==0) and (data.max(axis=0)[20]==20): # Anomalous linear behavior of the max in the data\n", " if (data.max(axis=0)[0]==0) and (data.max(axis=0)[20]==20): # Anomalous linear behavior of the max in the data\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment