Pull request #1063: PIPE-1733 fix bug in calcStatistics
Merge in PIPE/pipeline from PIPE-1733-hsd_blflag-flagging-threshold-of-running-mean-flag-became-nan to main
* commit 'bea2d01ed8f1b870c8fadda834923b7b835a8471':
PIPE-1733 fix bug in calcStatistics