Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

isolate data storage & logging in Subject object #85

Open
neuromusic opened this issue Dec 19, 2014 · 0 comments
Open

isolate data storage & logging in Subject object #85

neuromusic opened this issue Dec 19, 2014 · 0 comments

Comments

@neuromusic
Copy link
Member

this Subject object would have a set of methods to allow the behavioral protocol to save &/or query data

# define a subject
subj = Subject(name='B999',datastore='csv',datadir='/home/user/data')
# save a trial using whatever datastore the subject is using. csv? mongodb?
subj.save_trial(trial_object)
# query the accuracy over the past hundred trials
recent_acc = subj.data[-100:]['correct'].mean()
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant