reviving cone noise analysis code