Remove hardcoded /home/gg paths so the project is portable

Notebooks now use Path.home() / "cupido" for the repo root (works for
any user inside the JupyterLab container), and the offline-tracking
scripts read the ethoscope source-tree location from the new
ETHOSCOPE_SRC config constant — defaulting to ~/Code/ethoscope_project/...
and overridable via the ETHOSCOPE_SRC environment variable.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Giorgio Gilestro 2026-05-01 08:55:44 +01:00
parent 5934dce21e
commit 231c7a437f
8 changed files with 25 additions and 14 deletions

View file

@ -24,10 +24,10 @@ import cv2
import numpy as np
import pandas as pd
# ethoscope source tree
sys.path.insert(0, "/home/gg/Code/ethoscope_project/ethoscope/src/ethoscope")
from config import ETHOSCOPE_SRC, INVENTORY_CSV, TARGETS_DIR
from config import INVENTORY_CSV, TARGETS_DIR # noqa: E402
# ethoscope source tree
sys.path.insert(0, str(ETHOSCOPE_SRC))
from ethoscope.roi_builders.target_roi_builder import TargetGridROIBuilder # noqa: E402