Skip to content

Commit

Permalink
Merge pull request #662 from Aeefire/master
Browse files Browse the repository at this point in the history
FIX issue #598
  • Loading branch information
mkassner authored Mar 7, 2017
2 parents 3537c3c + a6c6a59 commit 9fdc274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pupil_src/shared_modules/calibration_routines/gaze_mappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
from . visualizer_calibration import Calibration_Visualizer

def _clamp_norm_point(pos):
'''realisitic numbers for norm pos should be in this range.
'''realistic numbers for norm pos should be in this range.
Grossly bigger or smaller numbers are results bad exrapolation
and can cause overflow erorr when denormalized and cast as int32.
'''
return min(100,max(-100,pos[0])),min(100,max(-100,pos[1]))
return min(100.,max(-100.,pos[0])),min(100.,max(-100.,pos[1]))

class Gaze_Mapping_Plugin(Plugin):
'''base class for all gaze mapping routines'''
Expand Down

0 comments on commit 9fdc274

Please sign in to comment.