settings#
The settings of each session: what the training protocol set for it (training stage, difficulties, punishment, reward…).
The village saves them twice when a session ends:
in the settings column of <project>/<setup>/sessions_summary.csv (as a JSON text), with the date (start) of the session and the subject,
in <project>/sessions/<subject>/<subject>_<task>_<YYYYMMDD_HHMMSS>.json.
The date of a session is the same as the date column of its trials, so settings and trials are matched by subject and date.
Functions:
session_settings_table: one row per session, one column per setting, from the sessions summaries (e.g. those of io.loading.load_project_logs).
get_session_settings: the settings of one session, from the summaries, or its .json file, fetched from the cluster if it is not on this computer.
format_session_settings: the settings of a session as readable text, marking those that changed since the previous session.
Functions
The settings whose value differs from the previous session: {name: previous value} (None if new). |
|
The settings whose value is not the same in every session of the table (e.g. to offer them first). |
|
Copies the .json of a session from the cluster (rsync over ssh, see io.server) to the same place in the local data folder. |
|
The settings of a session as aligned text, one per line, the ones that changed since the previous session first and marked with * (with their previous value). |
|
The settings of one session (subject, date of its start), looked for in: |
|
Prints the settings of one session (see get_session_settings), with the changes since the previous one. |
|
The settings of one row of session_settings_table, as plain python values (missing ones left out). |
|
<subject>_<task>_<YYYYMMDD_HHMMSS>: the name of the files of a session. |
|
One row per session (of subject, if given) with its date, subject, task, setup (if the summary has it) and one column per setting, sorted by date. |
|
The value of some settings in some sessions: one row per setting (names), one column per session date (dates, e.g. the columns of metrics.choices.get_choices_by_difficulty_matrix). |