Refs #6338 fixes for script to test statistics
Merge branch 'feature/6338_peak_statistics' into develop