removed usage of the geometric_mean function native to Python 3.9 to run on clusters with old Python.