nicky van foreest
Sat Apr 21 15:56:21 CDT 2012
On 21 April 2012 22:39, <email@example.com> wrote:
> On Sat, Apr 21, 2012 at 4:22 PM, nicky van foreest <firstname.lastname@example.org> wrote:
>> Hopefully this is the correct link:
> much easier
> answer a link https://github.com/scipy/scipy/blob/master/scipy/stats/distributions.py#L453
> dist is an attribute of the frozen class. the frozen class delegates
> to the real class and has that attached as `dist`
> so this is the same as the upper bound .b attribute of the class.
Sure. I have seen this in the code. The point I wanted to make is that
for a user who doesn't (want to) read the source the text in the
example is somewhat confusing. Shouldn't these doc strings be targeted
at plain users (with `plain' I have no derogatory intentions)?
>> btw, I am compiling a list of points about the scipy.stats code. Once
>> finished what should I do with it? Would it be best to send it to this
>> list? Should I send the points one by one, or better as one file?
>> I am very enthousiastic about the fact that the code is now easily
>> accessible via the web.
> pull request on github?
> depends on what the "points" are.
> If you find bugs, individual tickets would be useful. If you find
> several/many smaller things, then one would make it easier to go over
> all of them.
>> On 21 April 2012 22:17, <email@example.com> wrote:
>>> On Sat, Apr 21, 2012 at 3:56 PM, nicky van foreest <firstname.lastname@example.org> wrote:
>>>> While reading the code and the examples of scipy.stats I came across
>>>> the attribute rv.dist. Specifically, line 227 of the scipy.stats
>>>> source on the gibhub server mentions:
>>>>>>> x = np.linspace(0, np.minimum(rv.dist.b, 3))
>>>> The problem is that the meaning of this attribute is nowhere
>>>> explained. Is this a bug?
>>> Do you have the github link to the source? It's not clear which module
>>> you are talking about.
>>> (klick on line number and you get the link to that specific line)
>>> It would safe me some time searching for this.
>>>> SciPy-Dev mailing list
>>> SciPy-Dev mailing list
>> SciPy-Dev mailing list
> SciPy-Dev mailing list
More information about the SciPy-Dev