[Pkg-octave-commit] [SCM] Debian packaging for octave-signal branch, master, updated. upstream/1.1.2-16-gaee1bc7

Rafael Laboissiere rafael at laboissiere.net
Sat Mar 10 10:11:17 UTC 2012


The following commit has been merged in the master branch:
commit b10319ba2f592b89dbf2f0c3a5da5bf4fc72d7a2
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date:   Sat Mar 10 09:52:11 2012 +0000

    Add patch for avoid using deprecated functions

diff --git a/debian/patches/do-not-use-deprecated-functions.patch b/debian/patches/do-not-use-deprecated-functions.patch
new file mode 100644
index 0000000..179546a
--- /dev/null
+++ b/debian/patches/do-not-use-deprecated-functions.patch
@@ -0,0 +1,37 @@
+Description: Do not use functions deprecated in Octave 3.6
+ Use corr and polyder instead of the deprecated corrcoef and polyderiv
+ functions.  This will avoid warnings when using Octave 3.6.
+Author: Rafael Laboissiere <rafael at laboissiere.net>
+Last-Update: 2012-03-10
+
+Index: octave-signal/inst/filtfilt.m
+===================================================================
+--- octave-signal.orig/inst/filtfilt.m	2012-03-10 04:03:56.000000000 +0000
++++ octave-signal/inst/filtfilt.m	2012-03-10 04:07:10.000000000 +0000
+@@ -117,11 +117,11 @@
+ %! y = filtfilt(b, a, r+s);
+ %! assert (size(r), size(y));
+ %! assert (mean(abs(y)) < 1e3);
+-%! assert (corrcoef(s(250:750), y(250:750)) > .95)
++%! assert (corr(s(250:750), y(250:750)) > .95)
+ %! [b,a] = butter(2, [4e-4 8e-2]);
+ %! yb = filtfilt(b, a, r+s);
+ %! assert (mean(abs(yb)) < 1e3);
+-%! assert (corrcoef(y, yb) > .99)
++%! assert (corr(y, yb) > .99)
+ 
+ %!test
+ %! randn('state',0);
+Index: octave-signal/inst/private/h1_z_deriv.m
+===================================================================
+--- octave-signal.orig/inst/private/h1_z_deriv.m	2012-03-10 04:03:56.000000000 +0000
++++ octave-signal/inst/private/h1_z_deriv.m	2012-03-10 04:07:10.000000000 +0000
+@@ -27,7 +27,7 @@
+   d = (-1)^n; % Vector with the derivatives of H1(z)
+   for i= (1:n-1)
+     d  = [d 0];                           % Shift result right (multiply by -z)
+-    d += prepad(polyderiv(d), i+1, 0, 2); % Add the derivative
++    d += prepad(polyder(d), i+1, 0, 2); % Add the derivative
+   endfor
+ 
+   %% Build output vector
diff --git a/debian/patches/series b/debian/patches/series
index 1be32dc..d959811 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 accept-string-as-window-argument.patch
+do-not-use-deprecated-functions.patch

-- 
Debian packaging for octave-signal



More information about the Pkg-octave-commit mailing list