summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPuneeth Chaganti2010-10-08 10:47:02 +0530
committerPuneeth Chaganti2010-10-08 10:47:02 +0530
commit5e94717976ea54f587ce454907d7d454a9e00498 (patch)
treef6528b279862f7997bf6ab932c627d3f1a9d1034
parentfecdfacca055ef395d59af24a2c3aa951667781e (diff)
downloadst-scripts-5e94717976ea54f587ce454907d7d454a9e00498.tar.gz
st-scripts-5e94717976ea54f587ce454907d7d454a9e00498.tar.bz2
st-scripts-5e94717976ea54f587ce454907d7d454a9e00498.zip
Fixed script of loading data from files LO.
-rw-r--r--loading-data-from-files/script.rst56
1 files changed, 44 insertions, 12 deletions
diff --git a/loading-data-from-files/script.rst b/loading-data-from-files/script.rst
index f67a8c3..a8453e5 100644
--- a/loading-data-from-files/script.rst
+++ b/loading-data-from-files/script.rst
@@ -1,8 +1,30 @@
-========
- Script
-========
+.. Objectives
+.. ----------
-Welcome to this tutorial on loading data from files.
+.. At the end of this tutorial, you will be able to
+
+.. + Read data from files, containing a single column of data using the
+.. ``loadtxt`` command.
+.. + Read multiple columns of data, separated by spaces or other
+.. delimiters.
+
+
+.. Prerequisites
+.. -------------
+
+.. 1. getting started with ``ipython``
+
+.. Author :
+ 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 this tutorial on loading data from files.
{{{ Screen shows welcome slide }}}
@@ -61,8 +83,11 @@ two columns of data, ``pendulum.txt``. This file contains the length
of the pendulum in the first column and the corresponding time period
in the second.
-%%1%% Pause the video here, and use the ``cat`` command to view the
-contents of this file and then resume the video.
+.. Following is an exercise that you must do.
+
+.. %%1%% Use the ``cat`` command to view the contents of this file.
+
+.. Please, pause the video here. Do the exercise and then continue.
This is how we look at the contents of the file, ``pendulum.txt``
::
@@ -116,11 +141,13 @@ In this tutorial, we have learnt the basic use of the ``loadtxt``
command, which is capable of doing a lot more than we have used it for
until now, for example
-%%2%% Pause the video here, and read the file
-``pendulum_semicolon.txt`` which contains the same data as
-``pendulum.txt``, but the columns are separated by semi-colons instead
-of spaces. Use the IPython help to see how to do this. Once you have
-finished, resume the video to look at the solution.
+Following is an exercise that you must do.
+
+%%1%% Read the file ``pendulum_semicolon.txt`` which contains the same
+data as ``pendulum.txt``, but the columns are separated by semi-colons
+instead of spaces. Use the IPython help to see how to do this.
+
+Please, pause the video here. Do the exercise and then continue.
{{{ switch back to the terminal }}}
::
@@ -142,5 +169,10 @@ You should now be able to do the following, comfortably.
+ Read multiple columns of data, separated by spaces or other
delimiters.
-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!