summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPuneeth Chaganti2010-10-07 12:28:24 +0530
committerPuneeth Chaganti2010-10-07 12:28:24 +0530
commit3a29e2982490da298c60e46e2b5db0b7825d33a8 (patch)
tree8a3da4e3f369b53ed2fd5c15048b49dcfea7e1f5
parenta7f0f75b1ae8eb5e1cb0b205b01cf1333386f104 (diff)
parentb099c658f7797e82d44a1d5fc15ebd97bbaa8a31 (diff)
downloadst-scripts-3a29e2982490da298c60e46e2b5db0b7825d33a8.tar.gz
st-scripts-3a29e2982490da298c60e46e2b5db0b7825d33a8.tar.bz2
st-scripts-3a29e2982490da298c60e46e2b5db0b7825d33a8.zip
Merged heads.
-rw-r--r--accessing-pieces-arrays/script.rst21
-rw-r--r--advanced-features-functions/script.rst80
-rw-r--r--getting-started-files/script.rst72
3 files changed, 122 insertions, 51 deletions
diff --git a/accessing-pieces-arrays/script.rst b/accessing-pieces-arrays/script.rst
index b0974af..2731e0d 100644
--- a/accessing-pieces-arrays/script.rst
+++ b/accessing-pieces-arrays/script.rst
@@ -1,22 +1,21 @@
.. Objectives
.. ----------
- By the end of this tutorial, you will be able to:
+ .. By the end of this tutorial, you will be able to:
- 1. Access and change individual elements of arrays, both one
- dimensional and multi-dimensional.
- 2. Access and change rows and columns of arrays.
- 3. Access and change other chunks from an array, using slicing
- and striding.
- 4. Read images into arrays and perform processing on them, using
- simple array manipulations.
+ .. 1. Access and change individual elements of arrays, both one
+ .. dimensional and multi-dimensional.
+ .. 2. Access and change rows and columns of arrays.
+ .. 3. Access and change other chunks from an array, using slicing
+ .. and striding.
+ .. 4. Read images into arrays and perform processing on them, using
+ .. simple array manipulations.
.. Prerequisites
.. -------------
-.. 1. Name of LO-1
-.. 2. Name of LO-2
-.. 3. Name of LO-3
+.. 1. getting started with arrays
+
.. Author : Puneeth
Internal Reviewer :
diff --git a/advanced-features-functions/script.rst b/advanced-features-functions/script.rst
index 9ed8dc5..e62d576 100644
--- a/advanced-features-functions/script.rst
+++ b/advanced-features-functions/script.rst
@@ -1,17 +1,40 @@
-========
- Script
-========
+.. Objectives
+.. ----------
-{{{ show the welcome slide }}}
+.. At the end of this tutorial, you will be able to
+
+.. 1. Assign default values to arguments, when defining functions
+.. 2. Define and call functions with keyword arguments.
+.. 3. Also, you will get a glimpse of the plethora of functions
+.. available, in Python standard library and the scientific computing
+.. libraries.
+
+
+.. Prerequisites
+.. -------------
+
+.. 1. getting started with ipython
+.. #. getting started with functions
+
+.. Author : Puneeth
+ Internal Reviewer :
+ External Reviewer :
+ Checklist OK? : <put date stamp here, if OK> [2010-10-05]
+
+Script
+------
+
+{{{ Show the slide containing title }}}
Welcome to the tutorial on advanced feature of functions.
-{{{ show the outline slide }}}
+{{{ Show the outline slide }}}
In this tutorial we shall be looking at specifying default arguments
to functions when defining them and calling functions using keyword
arguments. We shall also, look at some of the built-in functions
-available in the standard library of Python.
+available in the standard library of Python and the scientific
+computing libraries.
{{{ switch to terminal }}}
@@ -46,7 +69,7 @@ being 0. 0 is the default value of the argument.
linspace(0, 2*pi, 100) # returns 100 points between 0 and 2pi
linspace(0, 2*pi) # returns 50 points between 0 and 2pi
-#[punch: all above content goes on to a slide]
+.. #[punch: all above content goes on to a slide]
{{{ switch back to ipython }}}
@@ -76,10 +99,13 @@ Now let us call the function with just one argument "Hello".
"Hello" is treated as the ``greet`` and we get "Hello World" as
the output. "World" is the default value for the argument ``name``.
-E%% %% Pause the video here and redefine the function ``welcome``, by
-interchanging it's arguments. Place the ``name`` argument with it's
-default value of "Hello" before the ``greet`` argument. Then, resume
-the video.
+Following is an (are) exercise(s) that you must do.
+
+%%1%% Redefine the function ``welcome``, by interchanging it's
+arguments. Place the ``name`` argument with it's default value of
+"Hello" before the ``greet`` argument.
+
+Please, pause the video here. Do the exercise and then continue.
::
@@ -90,17 +116,24 @@ We get an error that reads ``SyntaxError: non-default argument follows
default argument``. When defining a function all the argument with
default values should come at the end.
-E%% %% Pause the video here and type ``linspace?`` to see the
-definition of the command and notice how all the arguments with
-default values are towards the end.
+Following is an exercise that you must do.
+
+%%2%% See the definition of linspace using ``?`` and observe how all
+the arguments with default values are towards the end.
+
+Please, pause the video here. Do the exercise and then continue.
::
linspace?
-E%% %% Pause the video here and redefine the function ``welcome`` with
-a default value of "Hello" to the ``greet`` argument. Then, call the
-function without any arguments. Then, resume the video.
+Following is an exercise that you must do.
+
+%%3%% Redefine the function ``welcome`` with a default value of
+"Hello" to the ``greet`` argument. Then, call the function without any
+arguments.
+
+Please, pause the video here. Do the exercise and then continue.
::
@@ -175,8 +208,8 @@ with it.
Math functions - abs, sin, ....
-#[punch: Need to decide, exactly what to put here. Reviewer comments
- welcome.]
+.. #[punch: Need to decide, exactly what to put here. Reviewer comments
+.. welcome.]
{{{ switch to slide showing classes of functions in pylab, scipy }}}
@@ -192,7 +225,7 @@ purposes.
scipy (modules)
fftpack, stats, linalg, ndimage, signal, optimize, integrate
-{{{ switch slide to summary slide }}}
+{{{ Show summary slide }}}
That brings us to the end of this tutorial. In this tutorial we have
learnt how to use functions with default values and keyword
@@ -200,4 +233,9 @@ arguments. We also looked at the range of functions available in the
Python standard library and the Scientific Computing related
packages.
-Thank You!
+{{{ Show the "sponsored by FOSSEE" slide }}}
+
+This tutorial was created as a part of FOSSEE project, NME ICT, MHRD India
+
+Hope you have enjoyed and found it useful.
+Thank you!
diff --git a/getting-started-files/script.rst b/getting-started-files/script.rst
index e090406..df47fa2 100644
--- a/getting-started-files/script.rst
+++ b/getting-started-files/script.rst
@@ -1,10 +1,30 @@
-========
- Script
-========
+.. Objectives
+.. ----------
-Welcome to the tutorial on getting started with files.
+.. By the end of this tutorial, you will be able to
+.. 1. Open and read the contents of a file.
+.. #. Read files line by line.
+.. #. Read all the contents of the file at once.
+.. #. Close open files.
-{{{ Screen shows welcome slide }}}
+.. Prerequisites
+.. -------------
+
+.. 1. getting started with ipython
+.. #. getting started with lists
+.. #. getting started with for
+
+.. Author : Puneeth
+ Internal Reviewer :
+ External Reviewer :
+ Checklist OK? : <put date stamp here, if OK> [2010-10-05]
+
+Script
+------
+
+{{{ Show the slide containing title }}}
+
+Hello Friends. Welcome to the tutorial on getting started with files.
{{{ Show the outline for this tutorial }}}
@@ -54,24 +74,29 @@ to see more explicitly, what it contains.
pend
-%%1%% Pause the video here and split the variable into a list,
-``pend_list``, of the lines in the file and then resume the
-video. Hint, use the tab command to see what methods the string
-variable has.
+Following is an (are) exercise(s) that you must do.
+
+%%1%% Split the variable into a list, ``pend_list``, of the lines in
+the file. Hint, use the tab command to see what methods the string
+variable has.
+
+Please, pause the video here. Do the exercise and then continue.
+
+.. #[punch: should this even be put? add dependency to strings LO,
+.. where we mention that strings have methods for manipulation. hint:
+.. use splitlines()]
-#[punch: should this even be put? add dependency to strings LO,
-where we mention that strings have methods for manipulation. hint:
-use splitlines()]
::
pend_list = pend.splitlines()
pend_list
-Now, let us learn to read the file line-by-line. But, before that
-we will have to close the file, since the file has already been
-read till the end.
-#[punch: should we mention file-pointer?]
+Now, let us learn to read the file line-by-line. But, before that we
+will have to close the file, since the file has already been read till
+the end.
+
+.. #[punch: should we mention file-pointer?]
Let us close the file opened into f.
::
@@ -89,8 +114,11 @@ opened, after their job is done.
Let us, now move on to reading files line-by-line.
-%%1%% Pause the video here and re-open the file ``pendulum.txt``
-with ``f`` as the file object, and then resume the video.
+Following is an exercise that you must do.
+
+%%2%% Re-open the file ``pendulum.txt`` with ``f`` as the file object.
+
+Please, pause the video here. Do the exercise and then continue.
We just use the up arrow until we reach the open command and issue
it again.
@@ -143,5 +171,11 @@ have learnt to open and close files, read the data in the files as
a whole, using the read command or reading it line by line by
iterating over the file object.
-Thank you!
+{{{ Show the "sponsored by FOSSEE" slide }}}
+
+This tutorial was created as a part of FOSSEE project, NME ICT, MHRD India
+
+Hope you have enjoyed and found it useful.
+Thank you!
+