Per-user metadata TSV — auto-prefer ~/cupido_metadata.tsv if present

The shared TSV at /mnt/data/projects/cupido/ is read-only inside the
container, so users who want to customize the `include` column (or any
metadata) need a personal copy. Notebooks now check for
~/cupido_metadata.tsv first and fall back to the shared master if it
doesn't exist. Each user keeps their own edits without stepping on
anyone else's analysis.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Giorgio Gilestro 2026-05-01 09:25:24 +01:00
parent 23050360ea
commit f08e4b843d
6 changed files with 17 additions and 14 deletions

View file

@ -40,6 +40,17 @@ The TSV also has a per-row boolean `include` column (default `True`).
Flip it to `False` to drop a noisy / unusable fly+session from analysis
without deleting the row. `load_roi_data` honors this flag automatically.
The shared TSV at `/mnt/data/projects/cupido/all_video_info_merged.tsv`
is **read-only** (the data volume is mounted `:ro` in the container) so
each user keeps their own edits in a personal copy at
`~/cupido_metadata.tsv`. Notebooks pick up that personal copy
automatically if it exists; otherwise they fall back to the shared
master. To start your personal copy, run once in a terminal:
```bash
cp /mnt/data/projects/cupido/all_video_info_merged.tsv ~/cupido_metadata.tsv
```
## Column Reference (`distances.csv`)
- `date`, `machine_name`, `ROI`, `session`: identifies one fly trajectory