diff options
-rwxr-xr-x[-rw-r--r--] | circulate/sslc_allreg.py | 47 | ||||
-rw-r--r-- | circulate/sslc_science.py | 7 | ||||
-rw-r--r-- | day1/day1quiz2.tex | 16 | ||||
-rw-r--r-- | day1/session1.tex | 32 | ||||
-rw-r--r-- | day1/session2.tex | 2 | ||||
-rw-r--r-- | day1/session3.tex | 2 | ||||
-rw-r--r-- | day1/session4.tex | 2 | ||||
-rw-r--r-- | day1/session5.tex | 11 | ||||
-rwxr-xr-x | day1/session6.tex | 4 | ||||
-rw-r--r-- | day2/session1.tex | 2 | ||||
-rw-r--r-- | day2/session2.tex | 2 | ||||
-rw-r--r-- | day2/session3.tex | 13 | ||||
-rw-r--r-- | day2/session4.tex | 2 | ||||
-rw-r--r-- | day2/session5.tex | 2 | ||||
-rw-r--r-- | day2/session6.tex | 2 |
15 files changed, 63 insertions, 83 deletions
diff --git a/circulate/sslc_allreg.py b/circulate/sslc_allreg.py index 16dc12f..110a924 100644..100755 --- a/circulate/sslc_allreg.py +++ b/circulate/sslc_allreg.py @@ -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 + math_score = fields[5].strip() + if math_score != 'AA': + math_scores.append(int(math_score)) + else: + math_scores.append(0) -subj_total = [] -for subject in ninety_percents: - subj_total.append(sum(subject.values())) - - -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') - -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') # List method -print "Mean: ", mean(scores[2]) +print "Mean: ", mean(math_scores) -print "Median: ", median(scores[2]) +print "Median: ", median(math_scores) -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) diff --git a/circulate/sslc_science.py b/circulate/sslc_science.py index 83a52ae..d3b25b5 100644 --- a/circulate/sslc_science.py +++ b/circulate/sslc_science.py @@ -11,7 +11,12 @@ for record in open('sslc1.txt'): 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 diff --git a/day1/day1quiz2.tex b/day1/day1quiz2.tex index 17452ac..b21afcc 100644 --- a/day1/day1quiz2.tex +++ b/day1/day1quiz2.tex @@ -83,14 +83,14 @@ What is the resulting array? 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 } diff --git a/day1/session1.tex b/day1/session1.tex index 9e482ef..eaca360 100644 --- a/day1/session1.tex +++ b/day1/session1.tex @@ -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} diff --git a/day1/session2.tex b/day1/session2.tex index dbab39a..acbc70b 100644 --- a/day1/session2.tex +++ b/day1/session2.tex @@ -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} diff --git a/day1/session3.tex b/day1/session3.tex index f2bff96..4a7591d 100644 --- a/day1/session3.tex +++ b/day1/session3.tex @@ -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} diff --git a/day1/session4.tex b/day1/session4.tex index b0ddb5c..e131dad 100644 --- a/day1/session4.tex +++ b/day1/session4.tex @@ -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} diff --git a/day1/session5.tex b/day1/session5.tex index 7bd9f70..a49baef 100644 --- a/day1/session5.tex +++ b/day1/session5.tex @@ -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 @@ plot(l, t, '.') \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} diff --git a/day1/session6.tex b/day1/session6.tex index 0e34996..455b86d 100755 --- a/day1/session6.tex +++ b/day1/session6.tex @@ -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 @@ Out[]: array([ 1., -2., -2.]) \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. diff --git a/day2/session1.tex b/day2/session1.tex index 40ab665..2be0c35 100644 --- a/day2/session1.tex +++ b/day2/session1.tex @@ -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} diff --git a/day2/session2.tex b/day2/session2.tex index cd74e6c..a3b8d97 100644 --- a/day2/session2.tex +++ b/day2/session2.tex @@ -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} diff --git a/day2/session3.tex b/day2/session3.tex index c58531d..1652774 100644 --- a/day2/session3.tex +++ b/day2/session3.tex @@ -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 @@ Hi Guido \frametitle{Functions: Keyword arguments} We have seen the following \begin{lstlisting} -In []: legend(['sin(2y)'], - loc = 'center') +legend(['sin(2y)'], loc = 'center') -In []: plot(y, sin(y), 'g', - linewidth = 2) +plot(y, sin(y), 'g', linewidth = 2) -In []: annotate('local max', - xy = (1.5, 1)) +annotate('local max', xy = (1.5, 1)) -In []: pie(science.values(), +pie(science.values(), labels = science.keys()) \end{lstlisting} \end{frame} diff --git a/day2/session4.tex b/day2/session4.tex index dba0e8e..884645d 100644 --- a/day2/session4.tex +++ b/day2/session4.tex @@ -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} diff --git a/day2/session5.tex b/day2/session5.tex index 3af9893..b110c4c 100644 --- a/day2/session5.tex +++ b/day2/session5.tex @@ -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} diff --git a/day2/session6.tex b/day2/session6.tex index ff606a2..39def8b 100644 --- a/day2/session6.tex +++ b/day2/session6.tex @@ -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} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |