achuang2718 / enrico

the Fermi1 lab assistant
0 stars 3 forks source link

y2k-type bug #141

Open fermi1mit opened 2 years ago

fermi1mit commented 2 years ago

The base directory for live BEC1server backups of images is currently hardcoded in bec1server_config.json, as ",,/CAMERANAME/YYYY." Images from YYYY+1 will be saved into this incorrect base directory, in folder "(YYYY+1)MM."

This is currently fixed by manually creating the directory "../CAMERANAME/YYYY+1" and editing the .json file.

This can be fixed by stripping the basename YYYY from the .json file and rewriting the code to find (and create) the YYYY+1 folder automatically.