On Apr 22, 2009, at 11:45 AM, Ondrej Certik 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. >> 2CcvxoptornumpyfromSage > > 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.
Yes, I think so. However, it's been around for a long time and no-one has done anything with it yet. - Robert --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
