cupido/scripts
Giorgio Gilestro 28b7a227c0 load_roi_data: filter on barrier_opening.csv and stamp opening_s
For every session (training and testing alike), the loader now looks
up the corresponding row in barrier_opening.csv and:
  - drops the read if the ROI is in bad_rois (barrier never opened
    for that fly so its tracking has no biological meaning)
  - drops the read if the session is flagged unusable
  - stamps the session's opening_s onto every sample so downstream
    code can compute t_from_opening = t - opening_s

Tested against ETHOSCOPE_082 2024-09-17: training (bad_rois=1,3,5)
correctly drops ROIs 1/3/5; testing keeps all six; opening_s differs
between sessions as expected (646.8 vs 154.7).

Opt out with apply_barrier_filter=False if you need raw data.
2026-05-12 09:45:59 +01:00
..
barrier_picker_app Picker: lock video box to fixed aspect ratio so the layout doesn't jump 2026-05-01 14:48:15 +01:00
__init__.py Initial commit: organized project structure for student handoff 2026-03-05 16:08:36 +00:00
analyze_distances.py Initial commit: organized project structure for student handoff 2026-03-05 16:08:36 +00:00
auto_detect_targets.py Remove hardcoded /home/gg paths so the project is portable 2026-05-01 08:55:44 +01:00
build_video_inventory.py Add video duration_s to inventory and propagate to merged TSV 2026-05-01 11:13:05 +01:00
calculate_distances.py Unify analysis pipeline around the TSV; move tracked DBs out of cloud sync 2026-04-30 15:20:14 +01:00
cleanup_xlsx.py Dedupe + canonicalise the merged xlsx, then guard the export 2026-05-01 13:39:57 +01:00
config.py load_roi_data: filter on barrier_opening.csv and stamp opening_s 2026-05-12 09:45:59 +01:00
detect_barrier_opening.py Merge 2025-07-15 batch into the xlsx; tools to detect & re-track 2026-05-01 10:28:25 +01:00
explore_barrier_signal.py Merge 2025-07-15 batch into the xlsx; tools to detect & re-track 2026-05-01 10:28:25 +01:00
export_video_db_index.py Dedupe + canonicalise the merged xlsx, then guard the export 2026-05-01 13:39:57 +01:00
load_roi_data.py load_roi_data: filter on barrier_opening.csv and stamp opening_s 2026-05-12 09:45:59 +01:00
merge_2025_07_15_into_xlsx.py Merge 2025-07-15 batch into the xlsx; tools to detect & re-track 2026-05-01 10:28:25 +01:00
ml_classification.py Initial commit: organized project structure for student handoff 2026-03-05 16:08:36 +00:00
monitor_tracking.py Unify analysis pipeline around the TSV; move tracked DBs out of cloud sync 2026-04-30 15:20:14 +01:00
pick_barrier.py Force interactive matplotlib backend in pick_barrier 2026-05-01 12:23:15 +01:00
pick_targets.py Merge 2025-07-15 batch into the xlsx; tools to detect & re-track 2026-05-01 10:28:25 +01:00
plot_avg_distance_aligned.py Initial commit: organized project structure for student handoff 2026-03-05 16:08:36 +00:00
plot_avg_distance_first_200s.py Initial commit: organized project structure for student handoff 2026-03-05 16:08:36 +00:00
plot_avg_distance_over_time.py Initial commit: organized project structure for student handoff 2026-03-05 16:08:36 +00:00
plot_distance_over_time.py Initial commit: organized project structure for student handoff 2026-03-05 16:08:36 +00:00
statistical_tests.py Initial commit: organized project structure for student handoff 2026-03-05 16:08:36 +00:00
track_videos.py Remove hardcoded /home/gg paths so the project is portable 2026-05-01 08:55:44 +01:00
tracking_geometry.py Add offline tracking pipeline for video backlog 2026-04-27 17:25:26 +01:00