From 7d095238405d13cf365e85b7f871b907cf9ce7e7 Mon Sep 17 00:00:00 2001 From: Giorgio Gilestro Date: Thu, 30 Apr 2026 17:13:55 +0100 Subject: [PATCH] Move TARGETS_DIR to /mnt/data/projects/cupido/targets Targets relocated alongside the tracking DBs (out of ownCloud sync) so the docker mount already covers them and ownCloud no longer churns on JSON sidecars. Updated config, fixed a stale docstring in pick_targets, and dropped the now-moot data/targets/*.json gitignore rule. Co-Authored-By: Claude Opus 4.7 --- .gitignore | 3 +-- scripts/config.py | 4 +++- scripts/pick_targets.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 07f3445..54331af 100644 --- a/.gitignore +++ b/.gitignore @@ -3,8 +3,7 @@ data/raw/*.db data/processed/*.csv # Offline-tracking outputs (regenerable from videos + target JSONs) -# DBs live outside the repo at /mnt/data/projects/cupido/tracked/ -data/targets/*.json +# DBs and target JSONs live outside the repo at /mnt/data/projects/cupido/ data/metadata/video_inventory.csv data/logs/*.log diff --git a/scripts/config.py b/scripts/config.py index 447cee3..e2951f2 100644 --- a/scripts/config.py +++ b/scripts/config.py @@ -12,7 +12,9 @@ FIGURES = PROJECT_ROOT / "figures" VIDEOS_ROOT = Path("/mnt/ethoscope_data/videos") VIDEO_INFO_XLSX = PROJECT_ROOT.parent / "all_video_info_merged.xlsx" INVENTORY_CSV = DATA_METADATA / "video_inventory.csv" -TARGETS_DIR = PROJECT_ROOT / "data" / "targets" +# Reason: kept on the local data volume alongside the tracking DBs (out of +# ownCloud sync). See TRACKING_OUTPUT_DIR comment below. +TARGETS_DIR = Path("/mnt/data/projects/cupido/targets") # Reason: tracking DBs are large binary files that don't belong in # ownCloud-synced storage (sync conflicts + bandwidth). They live on the # local data volume instead. Regenerable from videos + target JSONs. diff --git a/scripts/pick_targets.py b/scripts/pick_targets.py index a5eea07..73be53e 100644 --- a/scripts/pick_targets.py +++ b/scripts/pick_targets.py @@ -12,7 +12,7 @@ These three points are the same reference layout used by ethoscope's coordinates. Saving them as a JSON sidecar lets the offline tracker build the 6-ROI HD mating arena grid without needing auto-target detection. -Output JSON sidecar: data/targets/.json +Output JSON sidecar: TARGETS_DIR/.json { "video_path": "/mnt/.../*.mp4", "frame_index": ,