#! /bin/bash
# Last edited on 2020-03-09 00:24:52 by jstolfi

# Recomputes the matchstick parameters and remakes the movies with only a few frames.

projdir="projects/neuromat/00-DATA/2020-03-03-arthur-walks"
stpovdir="posters/neuromat_matchstick"

# wknums=( 03 08 )
# wknums=( 01 02 04 05 06 07 09 10 11 12 13 )
wknums=( 09 11 )

for kk in ${wknums[@]} ; do 
  cd ~/${projdir}
  export PYTHONPATH=".:${HOME}/lib:"
  nmwk_vicon_to_matchstick.py \
    < markers/avmk${kk}.txt \
    > sticks/avst${kk}.txt
  cd ~/${stpovdir}
  make_matchstick_movie.sh av ${kk} 0 15 16 
done

