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:
parent
5934dce21e
commit
231c7a437f
8 changed files with 25 additions and 14 deletions
|
|
@ -27,11 +27,11 @@ from pathlib import Path
|
|||
|
||||
import numpy as np
|
||||
|
||||
from config import ETHOSCOPE_SRC, TARGETS_DIR, TRACKING_OUTPUT_DIR
|
||||
|
||||
# Import ethoscope from the local source tree (no pip install).
|
||||
ETHOSCOPE_SRC = Path("/home/gg/Code/ethoscope_project/ethoscope/src/ethoscope")
|
||||
sys.path.insert(0, str(ETHOSCOPE_SRC))
|
||||
|
||||
from config import TARGETS_DIR, TRACKING_OUTPUT_DIR # noqa: E402
|
||||
from tracking_geometry import HD_FG_DATA, compute_roi_polygons # noqa: E402
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue