Get subject training status via ONE

Use ONE to get the training status of a chosen subject or all subjects within a lab. Training status is computed based on performance over latest 3 sessions (default) or last 3 sessions before a specified date.

[1]:
from one.api import ONE

import brainbox.behavior.training as training
one = ONE(base_url='https://openalyx.internationalbrainlab.org', silent=True)
# Get training status of a specific subject
training.get_subject_training_status('SWC_043', one=one)

# Get training status of a specific subject on a chosen date
training.get_subject_training_status('KS023', date='2019-12-10', one=one)

# Get training status of all mice within a lab
# (N.B. only looks for alive and water restricted subjects)
training.get_lab_training_status('churchlandlab', one=one)

SWC_043 : ready4delay
Session dates=['2020-09-21'], Perf easy=[0.97], N trials=[529]
Psych fit over last 3 sessions (20): bias=-6.25, thres=0.0, lapse_low=0.0, lapse_high=0.09
Psych fit over last 3 sessions (80): bias=51.77, thres=81.74, lapse_low=0.0, lapse_high=0.0
Median reaction time at 0 contrast over last 3 sessions = 0.74

KS023 : ready4delay
Session dates=['2019-12-10'], Perf easy=[1.0], N trials=[641]
Psych fit over last 3 sessions (20): bias=-8.0, thres=15.32, lapse_low=0.0, lapse_high=0.01
Psych fit over last 3 sessions (80): bias=11.18, thres=21.97, lapse_low=0.0, lapse_high=0.0
Median reaction time at 0 contrast over last 3 sessions = 1.9