Open sjstein opened 3 weeks ago
Line 92 is missing an offset.
The line: scaled_val = int(r8max_val * (value / (hval - lval))) should be changed to: scaled_val = int(r8max_val * ((value - lval)/ (hval - lval)))
scaled_val = int(r8max_val * (value / (hval - lval)))
scaled_val = int(r8max_val * ((value - lval)/ (hval - lval)))
Line 92 is missing an offset.
The line:
scaled_val = int(r8max_val * (value / (hval - lval)))
should be changed to:scaled_val = int(r8max_val * ((value - lval)/ (hval - lval)))