Re: Staticstic app, ask for idea.

2010-09-12 Thread sebastien piquemal
You could run the django-cube tests ! If you don't give me the error trace, I cannot really help you ! On Sep 11, 8:10 pm, Lucian Romi wrote: > Thanks for your help. It's very clear. > I used measure_list method but it thrown and exception. > Here's how I did, > In my app's ModelAdmin I override

Re: Staticstic app, ask for idea.

2010-09-11 Thread Lucian Romi
Thanks for your help. It's very clear. I used measure_list method but it thrown and exception. Here's how I did, In my app's ModelAdmin I override changelist_view method. I was able to get the queryset, then instantied cube with this queryset. If I didn't call measure_list, everything works fine. B

Re: Staticstic app, ask for idea.

2010-09-11 Thread sebastien piquemal
class MyModelCube(Cube): my_dimension = Dimension(field='my_float_field__range', sample_space=[(0, 1.5), (1.5, 6.2)]) @static def aggregation(queryset): return queryset.count()/MyModel.objects.count() * 100 Basically when you declare a dimension, you can us

Re: Staticstic app, ask for idea.

2010-09-10 Thread Lucian Romi
Also, need I define "my_float_field__range"? Thanks On Fri, Sep 10, 2010 at 6:52 PM, Lucian Romi wrote: > Hi, Sebastien > > Follow your instruction, I was able to create a Cube object and define > sample_space. > However, I don't know how to retrieve the measure result. Can you tell > me how to d

Re: Staticstic app, ask for idea.

2010-09-10 Thread Lucian Romi
Hi, Sebastien Follow your instruction, I was able to create a Cube object and define sample_space. However, I don't know how to retrieve the measure result. Can you tell me how to do that? What do you mean by "instantiate a cube with a base queryset, and use one of the methods provided to calculat

Re: Staticstic app, ask for idea.

2010-08-31 Thread sebastien piquemal
To integrate a calculated value with search features from admin app, I don't know any other way than create and save a calculated field on your model ... This calculated field, you can calculate it with cube ... but if you don't use the Cube for any other statistic than that, it is too much overhea

Re: Staticstic app, ask for idea.

2010-08-30 Thread Lucian Romi
Thanks Sebastien. Can I integrate Cube with filter and search features from the admin app? Also, to make things simple, I'm going to use GChart, but I need statistic data. Let me download Cube and spend some time on it. Thanks. On Mon, Aug 30, 2010 at 4:16 PM, sebastien piquemal wrote: > I creat

Re: Staticstic app, ask for idea.

2010-08-30 Thread sebastien piquemal
I created an app to easily generate the stats part : http://code.google.com/p/django-cube/ ; however you still have to create the chart, for example with matplotlib : http://www.scipy.org/Cookbook/Matplotlib/Django. To create your stats with django-cube, you can use this code : from cube.mode

Re: Staticstic app, ask for idea.

2010-08-30 Thread bruno desthuilliers
On 30 août, 20:24, hollando wrote: > I want to make a statistic app. > There is a float field in my model(table).I want to use a chart to > show what's the percentage in each range. > Any suggestion to make such and app that can fit into django model. Nope, but reposting the same question two tim

Staticstic app, ask for idea.

2010-08-30 Thread hollando
I want to make a statistic app. There is a float field in my model(table).I want to use a chart to show what's the percentage in each range. Any suggestion to make such and app that can fit into django model. Thanks. -- You received this message because you are subscribed to the Google Groups "D