Skip to content
Snippets Groups Projects
Commit eee2b990 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 1ed2d21e
No related branches found
No related tags found
No related merge requests found
...@@ -413,7 +413,11 @@ def scale(data, param, mean_std_dict): ...@@ -413,7 +413,11 @@ def scale(data, param, mean_std_dict):
shape = data.shape shape = data.shape
data = data.flatten() data = data.flatten()
mean, std, lo, hi = mean_std_dict.get(param) if mean_std_dict is None:
lo = np.nanmin(data)
hi = np.nanmax(data)
_, _, lo, hi = mean_std_dict.get(param)
data -= lo data -= lo
data /= (hi - lo) data /= (hi - lo)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment