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

feature request: easy way to make pyrec object if recall matrix data already exists #21

Closed andrewheusser closed 7 years ago

andrewheusser commented 7 years ago

support the creation of a pyrec data object with the recall matrix precomputed. currently, we dont store the recall matrix in the pyrec data object (we compute it on the fly), since some analyses do not depend on it.

I propose creating a helper function (e.g. recmat2pyro) that creates a pyro given a recall matrix, since other using this package might already have recall matrices computed, but want to use the package for other analyses/plotting. For example:

import pyrec as pyr
pyro = pyr.recmat2pyro(recmat)

would take a precomputed recmat and create a pyro object

andrewheusser commented 7 years ago

added in e091abd