Skip to content

Commit

Permalink
Correctly store data
Browse files Browse the repository at this point in the history
  • Loading branch information
vladtcvs committed Sep 11, 2024
1 parent 04fd348 commit 97c3dad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vstarstack/library/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down

0 comments on commit 97c3dad

Please sign in to comment.