scripts for dark current measurements