get_mean.m: remove globals and fix internal logic

Merge request reports

Loading