Fixed temporary stuff in analyze_dets.py.