ContextLab / quail

A python toolbox for analyzing and plotting free recall data
http://cdl-quail.readthedocs.io/en/latest/
MIT License
20 stars 10 forks source link

optional subjgroup and listgroup field to egg #48

Closed andrewheusser closed 7 years ago

andrewheusser commented 7 years ago

When creating an egg, we could have these optional fields to make the syntax simpler for later functions. For example:

egg = quail.Egg(pres=pres, rec=rec, listgroup=['early']*8+['late']*8, subjgroup=['exp1']*10+['exp2']*8)

analyzed_data = quail.analyze(egg, analysis='spc')

the averaging would be inferred from the egg, unless listgroup/subjgroup are passed to the analysis function - in which case the egg groupings would be overwritten. This would allow users to save eggs with the conditions included.

jeremymanning commented 7 years ago

Looks good to me...

andrewheusser commented 7 years ago

done on groupvars-on-egg branch. will push after CEMS (don't want to break code during crunch time)