Merge test code in the engimeg/group folder into the calc_display_stats.py file. Add this to the group analysis pipeline.