cupido/notebooks
Giorgio Gilestro 8f3c4ca89c Make flies_analysis_simple robust to bad caches and empty alignment
- Cell 6: raise a clear ValueError if no loaded machine has a barrier-
  opening entry, listing what's loaded vs what's annotated. Previously
  alignment quietly produced empty DataFrames and we crashed five cells
  later with a cryptic KeyError on 'distance'.
- Cell 10: validate the cached CSVs (presence + expected columns +
  non-empty) before using them; fall through to recomputation if not.
  Skip writing the cache when results are empty so future runs don't
  pick up a 1-byte placeholder.
- Cell 3: derive a 'group' column from 'male' so downstream helpers
  that reference fly['group'] still work.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-01 09:59:34 +01:00
..
getting_started Move personal TSV into repo's data/metadata/ folder 2026-05-01 09:30:22 +01:00
flies_analysis.ipynb Move personal TSV into repo's data/metadata/ folder 2026-05-01 09:30:22 +01:00
flies_analysis_simple.ipynb Make flies_analysis_simple robust to bad caches and empty alignment 2026-05-01 09:59:34 +01:00