<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel">
    <title>gmane.comp.python.scientific.devel</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16561"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16560"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16559"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16558"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16557"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16556"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16555"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16554"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16553"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16552"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16551"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16550"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16549"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16548"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16547"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16546"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16545"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16544"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16543"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16542"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16561">
    <title>Scipy Docs permissions</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16561</link>
    <description>&lt;pre&gt;Hi all,

After many years of my living off the work you do, I thought I'd start helping out. Can I get edit permissions for the docs to start? I just registered with the username karmel.

Thanks!
Karmel
&lt;/pre&gt;</description>
    <dc:creator>Karmel Allison</dc:creator>
    <dc:date>2012-05-26T04:03:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16560">
    <title>Re: sum_angle() and sum_polar() functions</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16560</link>
    <description>&lt;pre&gt;
Looking at this again, I don't think the comparison is accurate.  The
skimage version of the radon transform does linear interpolation,
whereas sum_angle uses the nearest neighbor.

Stéfan
&lt;/pre&gt;</description>
    <dc:creator>Stéfan van der Walt</dc:creator>
    <dc:date>2012-05-23T23:41:42</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16559">
    <title>Adding t-test with unequal variances to stats.py</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16559</link>
    <description>&lt;pre&gt;Hi all,

I've issued a pull request (http://github.com/scipy/scipy/pull/227) for 
a version of scipy/stats/stats.py with the following changes:

1) Adds a method for running a t-test with unequal or unknown population 
variances. ttest_ind assumes that population variances are equal.
2) Refactored common code in the 4 t-test methods into shared methods.
3) This section of code, which has variations in multiple methods, looks 
buggy to me:

d = np.mean(a,axis) - np.mean(b,axis)
svar = ((n1-1)*v1+(n2-1)*v2) / float(df)

t = d/np.sqrt(svar*(1.0/n1 + 1.0/n2))
t = np.where((d==0)*(svar==0), 1.0, t) #define t=0/0 = 0, identical means

Surely if d=0, regardless of svar, t should be set to 0, not 1. 
Similarly, if svar = 0 then both variances are zero (assuming that each 
data set has at least 2 points - perhaps there should be a check for 
this?). In that case, if d==0 t should be zero. Otherwise, t should be 
+/-inf. Hence, (svar==0) is redundant.

Accordingly, I've changed the lines in all functions to be the equ&lt;/pre&gt;</description>
    <dc:creator>Junkshops</dc:creator>
    <dc:date>2012-05-23T07:38:34</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16558">
    <title>Re: scipy.test() runs 0 tests</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16558</link>
    <description>&lt;pre&gt;Hi Skipper,


That's the fix, and the reason the tests are executable is because my 
git repo is in a VirtualBox shared ntfs drive, so Linux permissions 
don't work and every single file in the repo is executable.

I think that if I do

|git config core.filemode false

|

I should be in good shape when I push, although if I'm wrong I'd 
definitely appreciate it if someone sets me right.

Thanks for the help,

Gavin

On 5/22/2012 11:20 AM, Skipper Seabold wrote:
_______________________________________________
SciPy-Dev mailing list
SciPy-Dev&amp;lt; at &amp;gt;scipy.org
http://mail.scipy.org/mailman/listinfo/scipy-dev
&lt;/pre&gt;</description>
    <dc:creator>Junkshops</dc:creator>
    <dc:date>2012-05-22T19:44:02</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16557">
    <title>Re: scipy.test() runs 0 tests</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16557</link>
    <description>&lt;pre&gt;
How did you build scipy? This works fine for me, though you'll want to
run the tests from the command line since you're not putting scipy on
the path.

[~/src/scipy-skipper] (master)
|11 $ nosetests scipy
&amp;lt;snip&amp;gt;
----------------------------------------------------------------------
Ran 6116 tests in 387.441s

FAILED (SKIP=28, errors=16, failures=19)

Otherwise, you might try doing

nosetest --exe scipy

though I can't imagine why the tests would have the executable bit set
in your source directory.
&lt;/pre&gt;</description>
    <dc:creator>Skipper Seabold</dc:creator>
    <dc:date>2012-05-22T18:20:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16556">
    <title>scipy.test() runs 0 tests</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16556</link>
    <description>&lt;pre&gt;Hi all,

Hopefully I'm not doing something too stupid here, but I've googled 
around quite a bit and can't seem to find any tips. Perhaps my google-fu 
is not strong enough. Anyway, I built scipy 0.11.0 in place, seemingly 
successfully, in ~/git/scipy. Ubuntu version is 12.04. I haven't added 
scipy 0.11 to the pypath yet so I'm running in the parent dir.

js&amp;lt; at &amp;gt;ubuntuVB12:~/git/scipy$ sudo aptitude install python-nose
&amp;lt;snip&amp;gt;
Setting up python-nose (1.1.2-3) ...

js&amp;lt; at &amp;gt;ubuntuVB12:~/git/scipy$ python
Python 2.7.3 (default, Apr 20 2012, 22:39:59)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 &amp;gt;&amp;gt;&amp;gt; import scipy
 &amp;gt;&amp;gt;&amp;gt; scipy.test()
Running unit tests for scipy
NumPy version 1.6.1
NumPy is installed in /usr/lib/python2.7/dist-packages/numpy
SciPy version 0.11.0.dev-3852ce2
SciPy is installed in scipy
Python version 2.7.3 (default, Apr 20 2012, 22:39:59) [GCC 4.6.3]
nose version 1.1.2

----------------------------------------------------------------------
Ran 0 tests in 0.161&lt;/pre&gt;</description>
    <dc:creator>Junkshops</dc:creator>
    <dc:date>2012-05-22T15:39:02</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16555">
    <title>Re: Code question about signal.ltisys.py</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16555</link>
    <description>&lt;pre&gt;


Ah, right.  Thanks.

Warren




_______________________________________________
SciPy-Dev mailing list
SciPy-Dev&amp;lt; at &amp;gt;scipy.org
http://mail.scipy.org/mailman/listinfo/scipy-dev
&lt;/pre&gt;</description>
    <dc:creator>Warren Weckesser</dc:creator>
    <dc:date>2012-05-22T10:05:20</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16554">
    <title>Re: warnings in scipy.stats.entropy</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16554</link>
    <description>&lt;pre&gt;[clip]

I'd rather add `xlogy(x, y) = x*log(y)` that treats the case `x==0` specially to
scipy.special, than kludge around the issue by masking or turning warnings off.

&lt;/pre&gt;</description>
    <dc:creator>Pauli Virtanen</dc:creator>
    <dc:date>2012-05-22T09:15:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16553">
    <title>Re: Code question about signal.ltisys.py</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16553</link>
    <description>&lt;pre&gt;[clip]

These lines are equivalent, *unless* the class has __setattr__ defined.
That's the case here, so rewriting may end up in different behavior
than intended, depending on what __setattr__ does.

    Pauli
&lt;/pre&gt;</description>
    <dc:creator>Pauli Virtanen</dc:creator>
    <dc:date>2012-05-22T09:11:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16552">
    <title>Re: warnings in scipy.stats.entropy</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16552</link>
    <description>&lt;pre&gt;
I works for 2d or nd if qk=None, and uses the (sometimes hidden) default axis=0.

If qk is given, it doesn't work but still uses axis=0 in the sum.

I would say typical state for a stats function that hasn't been
cleaned up. For the ones that I did clean up, I usually added the axis
keyword in cases like this.

Josef

&lt;/pre&gt;</description>
    <dc:creator>josef.pktd&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2012-05-22T03:29:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16551">
    <title>Re: warnings in scipy.stats.entropy</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16551</link>
    <description>&lt;pre&gt;
Hmm, I didn't think it was intended for 2d cases since there is no
axis keyword and no tests for this. Docstring is unclear, but I've
only used it for 1d and...

import numpy as np

p = np.random.random((10,4))
p[2,3] = 0
q = np.random.random((10,4))
q[2,3] = 0

p /= p.sum(0)
q /= q.sum(0)

from scipy import stats

# bad logic for &amp;gt; 1d
# plus it would return inf, not a 1d array
stats.entropy(p,q)

stats.entropy(p.flatten(), q.flatten())

# len check not shape
q = np.random.random((10,3))

stats.entropy(p, q)

&lt;/pre&gt;</description>
    <dc:creator>Skipper Seabold</dc:creator>
    <dc:date>2012-05-22T02:43:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16550">
    <title>Code question about signal.ltisys.py</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16550</link>
    <description>&lt;pre&gt;While taking a look at https://github.com/scipy/scipy/pull/225, which makes
a small changes to signal/ltisys.py,I noticed the surrounding code, which
has lines like this:

            self.__dict__['num'], self.__dict__['den'] = normalize(*args)


My inclination is to rewrite that as

            self.num, self.den = normalize(*args)


But am I missing something?


Warren
_______________________________________________
SciPy-Dev mailing list
SciPy-Dev&amp;lt; at &amp;gt;scipy.org
http://mail.scipy.org/mailman/listinfo/scipy-dev
&lt;/pre&gt;</description>
    <dc:creator>Warren Weckesser</dc:creator>
    <dc:date>2012-05-22T00:33:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16549">
    <title>Re: warnings in scipy.stats.entropy</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16549</link>
    <description>&lt;pre&gt;
won't work as replacement, if qk is None then the function is
vectorized for axis=0

array([[ 0.13878479,  0.03527334,  0.12000785,  0.14706888],
       [ 0.07682377,  0.12749588,  0.15172758,  0.19499206],
       [ 0.10462715,  0.1766166 ,  0.        ,  0.09346067],
       [ 0.02208519,  0.14443609,  0.11331574,  0.15090141],
       [ 0.00830154,  0.06009464,  0.05424912,  0.11603281],
       [ 0.05205531,  0.0792505 ,  0.02387006,  0.0061777 ],
       [ 0.00526626,  0.08439299,  0.17298407,  0.09992403],
       [ 0.16510456,  0.07008839,  0.01962196,  0.07101189],
       [ 0.23265325,  0.15908956,  0.2072021 ,  0.08105922],
       [ 0.19429818,  0.06326201,  0.13702153,  0.03937134]])

array([ 1.9678332 ,  2.19817097,  2.0136922 ,  2.1379255 ])

8.3176218626994789
8.3176218626994789

Josef

&lt;/pre&gt;</description>
    <dc:creator>josef.pktd&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2012-05-21T23:34:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16548">
    <title>Re: warnings in scipy.stats.entropy</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16548</link>
    <description>&lt;pre&gt;
https://github.com/scipy/scipy/pull/226

&lt;/pre&gt;</description>
    <dc:creator>Skipper Seabold</dc:creator>
    <dc:date>2012-05-21T23:23:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16547">
    <title>Re: warnings in scipy.stats.entropy</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16547</link>
    <description>&lt;pre&gt;
+1,

buggy: if qk is given, then the function isn't vectorized.

Josef

&lt;/pre&gt;</description>
    <dc:creator>josef.pktd&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2012-05-21T23:11:14</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16546">
    <title>Re: warnings in scipy.stats.entropy</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16546</link>
    <description>&lt;pre&gt;
I like the mask version better.

- N
&lt;/pre&gt;</description>
    <dc:creator>Nathaniel Smith</dc:creator>
    <dc:date>2012-05-21T22:43:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16545">
    <title>warnings in scipy.stats.entropy</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16545</link>
    <description>&lt;pre&gt;Currently in scipy.stats.entropy if you are not ignoring them you will
see warnings when the function is given a probability of zero even
though the case of zero is specifically handled in the function.
Rightly or wrongly this makes me cringe. What do people think about
fixing this by using seterr explicitly in the function or masking the
zeros. Eg.,

import numpy as np
from scipy.stats import entropy

prob = np.random.uniform(0,20, size=10)
prob[5] = 0
prob = prob/prob.sum()

np.seterr(all = 'warn')
entropy(prob) # too loud

Instead we could do (within entropy)

oldstate = np.geterr()
np.seterr(divide='ignore', invalid='ignore')
entropy(prob)
np.seterr(**oldstate)

or just mask the zeros in the first place if this is too much

idx = prob &amp;gt; 0
-np.sum(prob[idx] * np.log(prob[idx]))

Thoughts?

Skipper
&lt;/pre&gt;</description>
    <dc:creator>Skipper Seabold</dc:creator>
    <dc:date>2012-05-21T22:39:43</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16544">
    <title>Faster Hough/Radon transform (was sum_angle()sum_polar() functions)</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16544</link>
    <description>&lt;pre&gt;Thought I'd advertize this under a different subject heading. The sum_angle
function is really the inner loop but the timings are about 10x faster than
the Radon transform in skimage, so some here might be interested.

Chuck
_______________________________________________
SciPy-Dev mailing list
SciPy-Dev&amp;lt; at &amp;gt;scipy.org
http://mail.scipy.org/mailman/listinfo/scipy-dev
&lt;/pre&gt;</description>
    <dc:creator>Charles R Harris</dc:creator>
    <dc:date>2012-05-21T21:25:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16543">
    <title>Re: scipy.signal.normalize problems?</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16543</link>
    <description>&lt;pre&gt;If I change the allclose lines to have

allclose(0, outb[:,0], atol=1e-14) 

it works. I think that is what the original goal was, anyways. From the documentation of allclose, what I have written above result in ensuring

np.abs(0 - outb[:,0]) &amp;gt; atol + rtol * np.abs(outb[:,0])

with rtol defaulting to 1e-5. I'm still not sure about how things have been written for the 'b' argument of normalize being rank-2, so I can't guarantee that my fix makes things work for that. Should I file a bug report/submit a patch/send a git pull request, etc?

Cheers,

Josh Lawrence

On May 21, 2012, at 2:45 PM, Josh Lawrence wrote:

&lt;/pre&gt;</description>
    <dc:creator>Josh Lawrence</dc:creator>
    <dc:date>2012-05-21T19:11:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16542">
    <title>scipy.signal.normalize problems?</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16542</link>
    <description>&lt;pre&gt;Hey all,

I've been having some problems designing a Chebyshev filter and I think I have narrowed down the hang-up to scipy.signal.normalize. I think what's going on in my case is that line 286 of filter_design.py (the first allclose call in the normalize function) is producing a false positive. Here's the function definition:

def normalize(b, a):
    """Normalize polynomial representation of a transfer function.

    If values of b are too close to 0, they are removed. In that case, a
    BadCoefficients warning is emitted.
    """
    b, a = map(atleast_1d, (b, a))
    if len(a.shape) != 1:
        raise ValueError("Denominator polynomial must be rank-1 array.")
    if len(b.shape) &amp;gt; 2:
        raise ValueError("Numerator polynomial must be rank-1 or"
                         " rank-2 array.")
    if len(b.shape) == 1:
        b = asarray([b], b.dtype.char)
    while a[0] == 0.0 and len(a) &amp;gt; 1:
        a = a[1:]
    outb = b * (1.0) / a[0]
    outa = a * (1.0) / a[0]
    if allclose(outb[:, 0], 0, rtol=1e&lt;/pre&gt;</description>
    <dc:creator>Josh Lawrence</dc:creator>
    <dc:date>2012-05-21T18:45:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16541">
    <title>Re: sum_angle() and sum_polar() functions</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16541</link>
    <description>&lt;pre&gt;
Looks like you need to sell this as a faster Radon or Hough, angle_sum is a
bit too generic ;)

Chuck
_______________________________________________
SciPy-Dev mailing list
SciPy-Dev&amp;lt; at &amp;gt;scipy.org
http://mail.scipy.org/mailman/listinfo/scipy-dev
&lt;/pre&gt;</description>
    <dc:creator>Charles R Harris</dc:creator>
    <dc:date>2012-05-21T16:20:40</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.python.scientific.devel">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.python.scientific.devel</link>
  </textinput>
</rdf:RDF>

