Skip to content

Commit a34e2ae

Browse files
authored
FIX issue pupil-labs#598
min/maxing to in an integer value caused an integer to be returned in the edge case, instead of the wanted float
1 parent 3537c3c commit a34e2ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pupil_src/shared_modules/calibration_routines/gaze_mappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def _clamp_norm_point(pos):
2828
Grossly bigger or smaller numbers are results bad exrapolation
2929
and can cause overflow erorr when denormalized and cast as int32.
3030
'''
31-
return min(100,max(-100,pos[0])),min(100,max(-100,pos[1]))
31+
return min(100.,max(-100.,pos[0])),min(100.,max(-100.,pos[1]))
3232

3333
class Gaze_Mapping_Plugin(Plugin):
3434
'''base class for all gaze mapping routines'''

0 commit comments

Comments
 (0)