portugueslab / stytra

A modular package to control stimulation and track behaviour
http://www.portugueslab.com/stytra/
GNU General Public License v3.0
41 stars 26 forks source link

First "video" and "video_times" files of new animal are saved in previous animal's folder #85

Open birtezuidinga opened 1 year ago

birtezuidinga commented 1 year ago

As shown in the image below, every time I change the animal id in the GUI and record its first video, the video and video_times files are being saved in the folder of the previous animal. All other files are saved correctly to the new animal's folder.

image

When the animal is the first of the day, the video and video_times files are saved in a new folder with the correct date but wrong animal id number.

Currently I copy these files to the correct folder and everything works fine afterwards, but if it could be fixed that would be nice.

vigji commented 1 year ago

Hi @birtezuidinga, sorry for the delay in the reply! Are you sure you're running the last version of Stytra? We should have fixed this in master in one of the latest updates at some point earlier this year, right @nvbln?

birtezuidinga commented 1 year ago

Hi, thank you for the reply. I should be running the latest version now, but the problem persists. I checked for differences in my fork and master, but they are identical except for the extra stimuli I made. Do you maybe mean this fix? https://github.com/portugueslab/stytra/issues/78, that was a slightly different problem with saving the videos. Maybe I am overlooking something though.