From 92765b5665d0c57b90499f4eadca203215224c3e Mon Sep 17 00:00:00 2001 From: Ivan Usov Date: Mon, 22 Nov 2021 14:23:50 +0100 Subject: [PATCH] Fix error calculation when merging data Fix #46 --- pyzebra/ccl_process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyzebra/ccl_process.py b/pyzebra/ccl_process.py index 7867e86..8e94e8d 100644 --- a/pyzebra/ccl_process.py +++ b/pyzebra/ccl_process.py @@ -131,7 +131,7 @@ def merge_scans(scan_into, scan_from): scan_into[scan_motor] = pos_tmp scan_into["counts"] = val_tmp / num_tmp - scan_into["counts_err"] = np.sqrt(err_tmp) + scan_into["counts_err"] = np.sqrt(err_tmp) / num_tmp scan_from["export"] = False