Daily reports#
reports.overview has one function per cell of the overview of the daily
report (village-report-generator).
They never raise: if something fails, they return a figure with the error,
and the failure is recorded so that the report can list it
(overview.failed_cells(), overview.problems_table(...)).
Function |
Shows |
|---|---|
|
Detections, sessions, water and weight of each subject in the last hours. |
|
Trials of each subject in each training stage. |
|
Trials and performance of each subject in the last days. |
|
Performance of every subject through its trials (interactive). |
|
How much of each day the box was used, at what time, and who follows whom (an arrow from A to B: B started a session right after A). |
|
Win-stay / lose-switch and bias of each mouse in the last hours, a point per mouse. |
|
Performance against the trials done in each training stage (Habituation left out): the mean of the mice, and each mouse. |
|
Trials and performance per day of the cohort, by training stage. |
|
The panels and cells that could not be generated. |




Each mouse has the same colour in every cell (subject_colors), and every
figure takes style= (see Styles).
Any function can be made safe in the same way:
from lecilab_behavior_analysis.reports.overview import never_raises
@never_raises("My figure", "matplotlib") # or "plotly"
def my_figure(df):
...