I think it will be hard to convice the scipy folks that this is a bug
since it runs perfectly in Python, and scipy is not supposed to handle
foreign types anyway...

On 22 abr, 19:45, Ondrej Certik <[email protected]> wrote:
> On Wed, Apr 22, 2009 at 7:55 AM, William Stein <[email protected]> wrote:
>
> > On Wed, Apr 22, 2009 at 7:19 AM, Flavio Coelho <[email protected]> wrote:
>
> >> Hi
>
> >> anyone know why this simple  python code fails in sage?
>
> >> from scipy import stats
> >> stats.uniform(0,15).ppf([0.5,0.7])
>
> >> This has been a show stopper for me as need to do statistics...
>
> > This questions was answered incorrectly (and hard to find) in the SAGE
> > Faq, so I've put in a correct answer. See:
>
> >http://wiki.sagemath.org/faq#Typeissuesusingscipy.2Ccvxoptornumpyfrom...
>
> Just to make it sure -- it's a bug in scipy right? They should not
> only check for int/float, but also if the thing has __float__ or
> __int__ implemented. So that the user (Sage) can pass anything in
> there.
>
> Ondrej
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to