From 97c3dadeb2eaca900f8ff523bdedadbf83a88b28 Mon Sep 17 00:00:00 2001 From: Vladislav Tsendrovskii Date: Wed, 11 Sep 2024 03:22:21 +0200 Subject: [PATCH] Correctly store data --- src/vstarstack/library/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vstarstack/library/data.py b/src/vstarstack/library/data.py index f311fe2..4c8a37c 100644 --- a/src/vstarstack/library/data.py +++ b/src/vstarstack/library/data.py @@ -213,7 +213,7 @@ def _normalize_weight(self, data : np.ndarray, weight_max : float) -> Tuple[np.n data = np.clip(data, a_min=0, a_max=None) maxv = np.amax(data) data = (data*65535/maxv).astype(np.uint16) - return data, maxv*weight_max + return data, float(maxv*weight_max) def store(self, fname : str, compress : bool|None = None): """Save dataframe to file"""