Configuration#
Each active project has a .json file in
village_report_generator/active_configuration_files/. To stop making the
reports of a project, move its file to archived_configuration_files/: the
project goes to the archive of the index, with one report of its last data
(see How it works).
{
"project_name": "COT_cannula_GAD2_data",
"subjects": ["NUO057", "NUO058", "NUO059"],
"general_template": "visual_and_COT_quarto_general_template.txt",
"subject_template": "visual_and_COT_quarto_subject_template.txt"
}
Field |
|
|---|---|
|
Folder of the project in the data folder. |
|
Subjects to include (a subject without data is noted, not an error). |
|
Template of the Overview tab. |
|
Optional: template of the tab of each subject. Without it, the report only has the Overview (e.g. for habituation). |
|
Optional: a setup or a list of setups to read the events and sessions from. By default, every setup of the project. |
Templates#
Template |
|
|---|---|
|
Overview of a training project. |
|
Overview for habituation projects (use it without a subject template). |
|
Training history and session of the day of a subject. |
|
Problems tab, added to every report. |
|
Temperature and humidity report. |
Templates are Quarto documents with placeholders ([[[project_name]]],
[[[subjects]]], [[[setups]]], [[[date]]], [[[subject]]]). Each cell
calls a function of lecilab-behavior-analysis (reports.overview,
figure_maker) that never raises; to add a figure to the reports, add it
there and call it from a template. Cell labels must be unique in a report
(the subject template adds the subject to its labels).