On Wed, Apr 22, 2009 at 7:55 AM, William Stein <wst...@gmail.com> wrote: > > On Wed, Apr 22, 2009 at 7:19 AM, Flavio Coelho <fccoe...@gmail.com> 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. Ondrej --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---