On Thursday 23 Feb 2012 16:07:23 Gwern Branwen wrote:
 
> OK, I'll just go with that. Checking the existing stats, this is not
> yet calculated. The 'Grades' tab only displays a deck-wide count by
> grade, not an average per day over the last X days. So I'd like that
> added please.
> 
> And while I'm at it, at some point I have to actually analyze the
> data; I've done my past sleep experiments in CSV with R, so at some
> point I'm going to want to extract something like a two-column CSV of
> date/average grade. Is this something Mnemosyne should be supporting
> as a feature or should I begin banging my head against SQlite?

If you upgrade to the latest trunk, have a look at two files:

mnemosyne/example_plugins/avg_grade_statistics.py  
mnemosyne/example_scripts/export_stats.py

The first one is a full-fledged plugin. Just copy it to dot_mnemosyne2/plugins, 
activate it in the GUI, and you'll have an extra tab page showing the average 
grade.

The second file is a script to get that info out in text format. Run it using 
./bin/python, i.e. the python in your virtual-env. Be sure to modify the 
datapath in that script to point to the dot_mnemosyne2 directory.

Of course, starting from these examples, you can modify them to your heart's 
content and let your inner statistician run wild! 

Enjoy,

Peter

-- 
You received this message because you are subscribed to the Google Groups 
"mnemosyne-proj-users" group.
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/mnemosyne-proj-users?hl=en.

Reply via email to