[Python-modules-commits] r9709 - in packages/scitools/trunk/debian (2 files)

johannr-guest at users.alioth.debian.org johannr-guest at users.alioth.debian.org
Tue Sep 8 10:36:14 UTC 2009


    Date: Tuesday, September 8, 2009 @ 10:36:12
  Author: johannr-guest
Revision: 9709

Sync with 0.6-1.

Added:
  packages/scitools/trunk/debian/patches/scitools_examples.patch
Modified:
  packages/scitools/trunk/debian/README.Debian

Modified: packages/scitools/trunk/debian/README.Debian
===================================================================
--- packages/scitools/trunk/debian/README.Debian	2009-09-08 09:48:15 UTC (rev 9708)
+++ packages/scitools/trunk/debian/README.Debian	2009-09-08 10:36:12 UTC (rev 9709)
@@ -1,27 +1,41 @@
 How to interpret the .mat data files from the SciTools examples
 ---------------------------------------------------------------
 
-First make sure you have Octave installed. Then copy the SciTools
-examples somewhere you've got write permissions:
+The files in the examples folder may seem like binary glibber
+at first sight. They are however regular files in the Matlab
+v6 binary data format. Those can be edited with the free 
+tool 'Octave', which is also available in the Debian distribution.
 
+To amend those files, first make sure you have Octave installed.
+Then copy the SciTools examples somewhere you've got write permissions:
+
   $ cp -r /usr/share/doc/python-scitools/examples ~/scitools-examples
 
 Navigate into this folder:
 
   $ cd ~/scitools-examples
 
-Make sure you have Octave installed, fire it up and from the Octave
-prompt load the wind_matlab_v6 dataset:
+Fire Octave up. It will bring a clean working environment in Octave,
+avoid of any data objects. From the Octave prompt load the
+wind_matlab_v6 dataset:
 
   octave:1> load wind_matlab_v6.mat.gz
 
-Save the data in MATLAB's v6 binary data format:
+This will add variables to your Octave shell, You can then edit the data
+with the Matlab-like interface that Octave offers. Then save the data
+in Matlab's v6 binary data format:
 
-  octave:2> save -mat-binary wind_matlab_v6.mat
+  octave:2> save -mat-binary wind_matlab_v6.mat.gz
 
-Note that the .gz extension is stripped. Next, clear the data 
+Next, to continue on other files while avoiding a merger of data,
+clear the data
 
   octave:3> clear
 
 and follow the same steps for mri_matlab_v6.mat.gz and
 topo_matlab_v6.mat.gz.
+
+Concerning the .gz suffix, please be aware that Octave can read
+and write compressed files. Those can also be uncompressed with
+gunzip, should that be demanded. Just be aware that their size
+will increase about 10fold.

Added: packages/scitools/trunk/debian/patches/scitools_examples.patch
===================================================================
--- packages/scitools/trunk/debian/patches/scitools_examples.patch	                        (rev 0)
+++ packages/scitools/trunk/debian/patches/scitools_examples.patch	2009-09-08 10:36:12 UTC (rev 9709)
@@ -0,0 +1,110 @@
+Use gzipped Matlab files in the examples.
+
+diff -Nru scitools-0.6.orig/examples/contourslice_demo2.py scitools-0.6/examples/contourslice_demo2.py
+--- scitools-0.6.orig/examples/contourslice_demo2.py	2009-09-04 12:57:18.000000000 +0200
++++ scitools-0.6/examples/contourslice_demo2.py	2009-09-04 12:58:36.000000000 +0200
+@@ -9,7 +9,7 @@
+ 
+ setp(interactive=False)
+ 
+-mri = io.loadmat('mri_matlab_v6.mat')
++mri = io.loadmat('mri_matlab_v6.mat.gz')
+ D = mri['D']
+ D = squeeze(D)
+ 
+diff -Nru scitools-0.6.orig/examples/isosurface_demo2.py scitools-0.6/examples/isosurface_demo2.py
+--- scitools-0.6.orig/examples/isosurface_demo2.py	2009-09-04 12:57:18.000000000 +0200
++++ scitools-0.6/examples/isosurface_demo2.py	2009-09-04 12:58:51.000000000 +0200
+@@ -10,7 +10,7 @@
+ setp(interactive=False)
+ 
+ # Displaying an Isosurface:
+-mri = io.loadmat('mri_matlab_v6.mat')
++mri = io.loadmat('mri_matlab_v6.mat.gz')
+ D = mri['D']
+ #Ds = smooth3(D);
+ 
+diff -Nru scitools-0.6.orig/examples/isosurface_demo3.py scitools-0.6/examples/isosurface_demo3.py
+--- scitools-0.6.orig/examples/isosurface_demo3.py	2009-09-04 12:57:18.000000000 +0200
++++ scitools-0.6/examples/isosurface_demo3.py	2009-09-04 12:59:05.000000000 +0200
+@@ -10,7 +10,7 @@
+ setp(interactive=False)
+ 
+ # Create an Isosurface:
+-wind = io.loadmat('wind_matlab_v6.mat')
++wind = io.loadmat('wind_matlab_v6.mat.gz')
+ x = wind['x']
+ y = wind['y']
+ z = wind['z']
+diff -Nru scitools-0.6.orig/examples/streamline_demo1.py scitools-0.6/examples/streamline_demo1.py
+--- scitools-0.6.orig/examples/streamline_demo1.py	2009-09-04 12:57:18.000000000 +0200
++++ scitools-0.6/examples/streamline_demo1.py	2009-09-04 12:59:25.000000000 +0200
+@@ -7,7 +7,7 @@
+ from time import sleep
+ from scipy import io
+ 
+-wind = io.loadmat('wind_matlab_v6.mat')
++wind = io.loadmat('wind_matlab_v6.mat.gz')
+ x = wind['x']
+ y = wind['y']
+ z = wind['z']
+diff -Nru scitools-0.6.orig/examples/streamline_demo2.py scitools-0.6/examples/streamline_demo2.py
+--- scitools-0.6.orig/examples/streamline_demo2.py	2009-09-04 12:57:18.000000000 +0200
++++ scitools-0.6/examples/streamline_demo2.py	2009-09-04 12:59:39.000000000 +0200
+@@ -7,7 +7,7 @@
+ from time import sleep
+ from scipy import io
+ 
+-wind = io.loadmat('wind_matlab_v6.mat')
++wind = io.loadmat('wind_matlab_v6.mat.gz')
+ x = wind['x']
+ y = wind['y']
+ z = wind['z']
+diff -Nru scitools-0.6.orig/examples/streamline_demo3.py scitools-0.6/examples/streamline_demo3.py
+--- scitools-0.6.orig/examples/streamline_demo3.py	2009-09-04 12:57:18.000000000 +0200
++++ scitools-0.6/examples/streamline_demo3.py	2009-09-04 12:59:52.000000000 +0200
+@@ -7,7 +7,7 @@
+ from time import sleep
+ from scipy import io
+ 
+-wind = io.loadmat('wind_matlab_v6.mat')
++wind = io.loadmat('wind_matlab_v6.mat.gz')
+ x = wind['x']
+ y = wind['y']
+ z = wind['z']
+diff -Nru scitools-0.6.orig/examples/streamribbon_demo1.py scitools-0.6/examples/streamribbon_demo1.py
+--- scitools-0.6.orig/examples/streamribbon_demo1.py	2009-09-04 12:57:18.000000000 +0200
++++ scitools-0.6/examples/streamribbon_demo1.py	2009-09-04 13:00:04.000000000 +0200
+@@ -7,7 +7,7 @@
+ from time import sleep
+ from scipy import io
+ 
+-wind = io.loadmat('wind_matlab_v6.mat')
++wind = io.loadmat('wind_matlab_v6.mat.gz')
+ x = wind['x']
+ y = wind['y']
+ z = wind['z']
+diff -Nru scitools-0.6.orig/examples/streamtube_demo1.py scitools-0.6/examples/streamtube_demo1.py
+--- scitools-0.6.orig/examples/streamtube_demo1.py	2009-09-04 12:57:18.000000000 +0200
++++ scitools-0.6/examples/streamtube_demo1.py	2009-09-04 13:00:17.000000000 +0200
+@@ -6,7 +6,7 @@
+ from scitools.easyviz import *
+ from scipy import io
+ 
+-wind = io.loadmat('wind_matlab_v6.mat')
++wind = io.loadmat('wind_matlab_v6.mat.gz')
+ x = wind['x']
+ y = wind['y']
+ z = wind['z']
+diff -Nru scitools-0.6.orig/examples/streamtube_demo2.py scitools-0.6/examples/streamtube_demo2.py
+--- scitools-0.6.orig/examples/streamtube_demo2.py	2009-09-04 12:57:18.000000000 +0200
++++ scitools-0.6/examples/streamtube_demo2.py	2009-09-04 13:00:27.000000000 +0200
+@@ -6,7 +6,7 @@
+ from scitools.easyviz import *
+ from scipy import io
+ 
+-wind = io.loadmat('wind_matlab_v6.mat')
++wind = io.loadmat('wind_matlab_v6.mat.gz')
+ x = wind['x']
+ y = wind['y']
+ z = wind['z']




More information about the Python-modules-commits mailing list