Minor corrections.
authorSantosh G. Vattam <vattam.santosh@gmail.com>
Fri, 23 Apr 2010 08:49:25 +0530
changeset 385 c70118cdde66
parent 384 9f9fddf7e37c
child 386 a0bec380b44f
Minor corrections.
circulate/sslc_allreg.py
circulate/sslc_science.py
day1/day1quiz2.tex
day1/session1.tex
day1/session2.tex
day1/session3.tex
day1/session4.tex
day1/session5.tex
day1/session6.tex
day2/session1.tex
day2/session2.tex
day2/session3.tex
day2/session4.tex
day2/session5.tex
day2/session6.tex
--- a/circulate/sslc_allreg.py	Wed Apr 21 13:47:36 2010 +0530
+++ b/circulate/sslc_allreg.py	Fri Apr 23 08:49:25 2010 +0530
@@ -1,50 +1,29 @@
-scores = [[], [], [], [], []]
-ninety_percents = [{}, {}, {}, {}, {}]
 
+math_scores = []
 for record in open('sslc1.txt'):
-#    record = record.strip()
     fields = record.split(';')
 
-    region_code = fields[0].strip()
-   
-    for i, field in enumerate(fields[3:8]):
-        if region_code not in ninety_percents[i]:
-            ninety_percents[i][region_code] = 0
-        score_str = field.strip()
-        score = 0 if score_str == 'AA' else int(score_str)
-        scores[i].append(score)
-        if score > 90:
-            ninety_percents[i][region_code] += 1
-
-subj_total = []
-for subject in ninety_percents:
-    subj_total.append(sum(subject.values()))
+    math_score = fields[5].strip()
+    if math_score != 'AA':
+        math_scores.append(int(math_score))
+    else:
+        math_scores.append(0)
 
 
-figure(1)
-pie(ninety_percents[3].values(), labels=ninety_percents[3].keys())
-title('Students scoring 90% and above in science by region')
-savefig('science.png')
+# List method
+print "Mean: ", mean(math_scores)
 
-figure(2)
-pie(subj_total, labels=['English', 'Hindi', 'Maths', 'Science', 'Social'])
-title('Students scoring more than 90% by subject(All regions combined).')
-savefig('all_regions.png')
+print "Median: ", median(math_scores)
 
-# List method
-print "Mean: ", mean(scores[2])
-
-print "Median: ", median(scores[2])
-
-print "Standard Deviation: ", std(scores[2])
+print "Standard Deviation: ", std(math_scores)
 
 # Array method
 
-#math_scores = array(scores[2])
+math_scores = array(math_scores)
 
-#print "Mean: ", mean(math_scores)
+print "Mean: ", mean(math_scores)
 
-#print "Median: ", median(math_scores)
+print "Median: ", median(math_scores)
 
-#print "Standard Deviation: ", std(math_scores)
+print "Standard Deviation: ", std(math_scores)
 
--- a/circulate/sslc_science.py	Wed Apr 21 13:47:36 2010 +0530
+++ b/circulate/sslc_science.py	Fri Apr 23 08:49:25 2010 +0530
@@ -11,7 +11,12 @@
 
     score_str = fields[6].strip()
 
-    score = int(score_str) if score_str != 'AA' else 0
+#    score = int(score_str) if score_str != 'AA' else 0
+
+    if score_str != 'AA':
+        score = int(score_str)
+    else:
+        score = 0
 
     if score > 90:
         science[region_code] += 1
--- a/day1/day1quiz2.tex	Wed Apr 21 13:47:36 2010 +0530
+++ b/day1/day1quiz2.tex	Fri Apr 23 08:49:25 2010 +0530
@@ -83,14 +83,14 @@
 What will be printed?
 \end{frame}
 
-%% \begin{frame}[fragile]
-%% \frametitle{\incqno }
-%% \begin{lstlisting}
-%%   In []: x = array([[1,2,3,4],
-%%                     [3,4,2,5]])
-%% \end{lstlisting}
-%% What is the \lstinline+shape+ of this array?
-%% \end{frame}
+\begin{frame}[fragile]
+\frametitle{\incqno }
+\begin{lstlisting}
+  In []: x = array([[1,2,3,4],
+                    [3,4,2,5]])
+\end{lstlisting}
+What is the \lstinline+shape+ of this array?
+\end{frame}
 
 \begin{frame}[fragile]
 \frametitle{\incqno }
--- a/day1/session1.tex	Wed Apr 21 13:47:36 2010 +0530
+++ b/day1/session1.tex	Fri Apr 23 08:49:25 2010 +0530
@@ -77,7 +77,7 @@
 \author[FOSSEE] {FOSSEE}
 
 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
-\date[] {02 April, 2010\\Day 1, Session 1}
+\date[] {22 April, 2010\\Day 1, Session 1}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
@@ -125,27 +125,27 @@
 \begin{frame}
   \frametitle{Workshop Schedule: Day 1}
   \begin{description}
-	\item[Session 1] Fri 09:00--10:00
-	\item[Session 2] Fri 10:05--11:05
-	\item[Session 3] Fri 11:20--12:20
-        \item[Session 4] Fri 12:25--13:25
-        \item[Quiz 1] Fri 14:25--14:45
-        \item[Exercises] Fri 14:45--15:30
-        \item[Session 5] Fri 15:45--16:45
-        \item[Quiz 2] Fri 16:50--17:05
+	\item[Session 1] Thu 09:00--10:00
+	\item[Session 2] Thu 10:00--11:00
+	\item[Session 3] Thu 11:10--12:10
+        \item[Session 4] Thu 12:10--13:10
+        \item[Quiz 1] Thu 14:10--14:25
+        \item[Exercises] Thu 14:25--15:10
+        \item[Session 5] Thu 15:20--16:20
+        \item[Quiz 2] Thu 16:20--16:35
   \end{description}
 \end{frame}
 
 \begin{frame}
   \frametitle{Workshop Schedule: Day 2}
   \begin{description}
-	\item[Session 1] Sat 09:00--10:00
-	\item[Session 2] Sat 10:05--11:05
-	\item[Session 3] Sat 11:20--12:20
-        \item[Session 4] Sat 12:25--13:25
-        \item[Quiz 1] Sat 14:25--14:45
-        \item[Exercises] Sat 14:45--15:30
-        \item[Session 5] Sat 15:45--16:45
+	\item[Session 1] Fri 09:00--10:00
+	\item[Session 2] Fri 10:00--11:00
+	\item[Session 3] Fri 11:10--12:10
+        \item[Session 4] Fri 12:10--13:10
+        \item[Quiz 1] Fri 14:10--14:25
+        \item[Exercises] Fri 14:25--15:10
+        \item[Session 5] Fri 15:20--16:20
   \end{description}
 \end{frame}
 
--- a/day1/session2.tex	Wed Apr 21 13:47:36 2010 +0530
+++ b/day1/session2.tex	Fri Apr 23 08:49:25 2010 +0530
@@ -78,7 +78,7 @@
 \author[FOSSEE] {FOSSEE}
 
 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
-\date[] {02 April, 2010\\Day 1, Session 2}
+\date[] {22 April, 2010\\Day 1, Session 2}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
--- a/day1/session3.tex	Wed Apr 21 13:47:36 2010 +0530
+++ b/day1/session3.tex	Fri Apr 23 08:49:25 2010 +0530
@@ -79,7 +79,7 @@
 
 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
 
-\date[] {02 April, 2010\\Day 1, Session 3}
+\date[] {22 April, 2010\\Day 1, Session 3}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
--- a/day1/session4.tex	Wed Apr 21 13:47:36 2010 +0530
+++ b/day1/session4.tex	Fri Apr 23 08:49:25 2010 +0530
@@ -79,7 +79,7 @@
 \author[FOSSEE] {FOSSEE}
 
 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
-\date[] {02 April, 2010\\Day 1, Session 4}
+\date[] {22 April, 2010\\Day 1, Session 4}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
--- a/day1/session5.tex	Wed Apr 21 13:47:36 2010 +0530
+++ b/day1/session5.tex	Fri Apr 23 08:49:25 2010 +0530
@@ -78,7 +78,7 @@
 \author[FOSSEE] {FOSSEE}
 
 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
-\date[] {02 April, 2010\\Day 1, Session 5}
+\date[] {22 April, 2010\\Day 1, Session 5}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
@@ -153,15 +153,12 @@
     \hspace*{-0.5in}
     \includegraphics[height=2in, interpolate=true]{data/triangle}
     \column{0.45\textwidth}
-    \begin{block}{Line between two points}
+    \begin{block}{Plot points given x and y coordinates}
     \tiny
     \begin{lstlisting}
-In []: x = [3, 1]
-In []: y = [2, -3]
-In []: z = [-2, 4]
+In []: x = [3, 2, -2, 3]
+In []: y = [1, -3, 4, 1]
 In []: plot(x, y)
-In []: plot(y, z)
-In []: plot(x, z)
     \end{lstlisting}
     \end{block}
   \end{columns}
--- a/day1/session6.tex	Wed Apr 21 13:47:36 2010 +0530
+++ b/day1/session6.tex	Fri Apr 23 08:49:25 2010 +0530
@@ -78,7 +78,7 @@
 \author[FOSSEE] {FOSSEE}
 
 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
-\date[] {02 April, 2010\\Day 1, Session 6}
+\date[] {22 April, 2010\\Day 1, Session 6}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
@@ -163,11 +163,13 @@
 
 \begin{frame}[fragile]
 \frametitle{Let's check!}
+\begin{small}
 \begin{lstlisting}
 In []: Ax = dot(A, x)
 In []: Ax
 Out[]: array([  1.00000000e+00,  -2.00000000e+00,  -1.11022302e-16])
 \end{lstlisting}
+\end{small}
 \begin{block}{}
 The last term in the matrix is actually \alert{0}!\\
 We can use \kwrd{allclose()} to check.
--- a/day2/session1.tex	Wed Apr 21 13:47:36 2010 +0530
+++ b/day2/session1.tex	Fri Apr 23 08:49:25 2010 +0530
@@ -79,7 +79,7 @@
 \author[FOSSEE Team] {The FOSSEE Group}
 
 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
-\date[] {03 April, 2010\\Day 2, Session 1}
+\date[] {23 April, 2010\\Day 2, Session 1}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
--- a/day2/session2.tex	Wed Apr 21 13:47:36 2010 +0530
+++ b/day2/session2.tex	Fri Apr 23 08:49:25 2010 +0530
@@ -78,7 +78,7 @@
 \author[FOSSEE Team] {The FOSSEE Group}
 
 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
-\date[] {03 April, 2010\\Day 2, Session 2}
+\date[] {23 April, 2010\\Day 2, Session 2}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
--- a/day2/session3.tex	Wed Apr 21 13:47:36 2010 +0530
+++ b/day2/session3.tex	Fri Apr 23 08:49:25 2010 +0530
@@ -78,7 +78,7 @@
 \author[FOSSEE Team] {The FOSSEE Group}
 
 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
-\date[] {03 April, 2010\\Day 2, Session 3}
+\date[] {23 April, 2010\\Day 2, Session 3}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
@@ -160,16 +160,13 @@
   \frametitle{Functions: Keyword arguments}
 We have seen the following
 \begin{lstlisting}
-In []: legend(['sin(2y)'], 
-                 loc = 'center')
+legend(['sin(2y)'], loc = 'center')
+
+plot(y, sin(y), 'g', linewidth = 2)
 
-In []: plot(y, sin(y), 'g',
-                 linewidth = 2)
+annotate('local max', xy = (1.5, 1))
 
-In []: annotate('local max',
-                 xy = (1.5, 1))
-
-In []: pie(science.values(),
+pie(science.values(), 
             labels = science.keys())
   \end{lstlisting}
 \end{frame}
--- a/day2/session4.tex	Wed Apr 21 13:47:36 2010 +0530
+++ b/day2/session4.tex	Fri Apr 23 08:49:25 2010 +0530
@@ -100,7 +100,7 @@
 \author[FOSSEE] {FOSSEE}
 
 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
-\date[] {03 April, 2010\\Day 2, Session 4}
+\date[] {23 April, 2010\\Day 2, Session 4}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 %\pgfdeclareimage[height=0.75cm]{iitblogo}{iitblogo}
--- a/day2/session5.tex	Wed Apr 21 13:47:36 2010 +0530
+++ b/day2/session5.tex	Fri Apr 23 08:49:25 2010 +0530
@@ -78,7 +78,7 @@
 \author[FOSSEE] {FOSSEE}
 
 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
-\date[] {03 April, 2010\\Day 2, Session 5}
+\date[] {23 April, 2010\\Day 2, Session 5}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
--- a/day2/session6.tex	Wed Apr 21 13:47:36 2010 +0530
+++ b/day2/session6.tex	Fri Apr 23 08:49:25 2010 +0530
@@ -100,7 +100,7 @@
 \author[FOSSEE] {FOSSEE}
 
 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
-\date[] {03 April, 2010\\Day 2, Session 6}
+\date[] {23 April, 2010\\Day 2, Session 6}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%